/* Outlook specific API library */
/* Version: 16.0.6018.1000 */
/*
	Copyright (c) Microsoft Corporation.  All rights reserved.
*/

/*
	Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419.
*/

/*!
Copyright (c) Microsoft Corporation.  All rights reserved.
*/
/*!
Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419.
*/
var __extends=this.__extends||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);function r(){this.constructor=n}r.prototype=t.prototype;n.prototype=new r},OfficeExt;(function(n){var t=function(){var i=null,n=!0;function t(){}t.prototype.isMsAjaxLoaded=function(){var t="function",i="undefined";return typeof Sys!==i&&typeof Type!==i&&Sys.StringBuilder&&typeof Sys.StringBuilder===t&&Type.registerNamespace&&typeof Type.registerNamespace===t&&Type.registerClass&&typeof Type.registerClass===t&&typeof Function._validateParams===t?n:!1};t.prototype.loadMsAjaxFull=function(n){var t=(window.location.protocol.toLowerCase()==="https:"?"https:":"http:")+"//ajax.aspnetcdn.com/ajax/3.5/MicrosoftAjax.js";OSF.OUtil.loadScript(t,n)};Object.defineProperty(t.prototype,"msAjaxError",{get:function(){var n=this;n._msAjaxError==i&&n.isMsAjaxLoaded()&&(n._msAjaxError=Error);return n._msAjaxError},set:function(n){this._msAjaxError=n},enumerable:n,configurable:n});Object.defineProperty(t.prototype,"msAjaxSerializer",{get:function(){var n=this;n._msAjaxSerializer==i&&n.isMsAjaxLoaded()&&(n._msAjaxSerializer=Sys.Serialization.JavaScriptSerializer);return n._msAjaxSerializer},set:function(n){this._msAjaxSerializer=n},enumerable:n,configurable:n});Object.defineProperty(t.prototype,"msAjaxString",{get:function(){var n=this;n._msAjaxString==i&&n.isMsAjaxLoaded()&&(n._msAjaxSerializer=String);return n._msAjaxString},set:function(n){this._msAjaxString=n},enumerable:n,configurable:n});Object.defineProperty(t.prototype,"msAjaxDebug",{get:function(){var n=this;n._msAjaxDebug==i&&n.isMsAjaxLoaded()&&(n._msAjaxDebug=Sys.Debug);return n._msAjaxDebug},set:function(n){this._msAjaxDebug=n},enumerable:n,configurable:n});return t}();n.MicrosoftAjaxFactory=t})(OfficeExt||(OfficeExt={}));var OsfMsAjaxFactory=new OfficeExt.MicrosoftAjaxFactory,OSF=OSF||{},OfficeExt;(function(n){var t=function(){function n(n){this._internalStorage=n}n.prototype.getItem=function(n){try{return this._internalStorage&&this._internalStorage.getItem(n)}catch(t){return null}};n.prototype.setItem=function(n,t){try{this._internalStorage&&this._internalStorage.setItem(n,t)}catch(i){}};n.prototype.clear=function(){try{this._internalStorage&&this._internalStorage.clear()}catch(n){}};n.prototype.removeItem=function(n){try{this._internalStorage&&this._internalStorage.removeItem(n)}catch(t){}};n.prototype.getKeysWithPrefix=function(n){var i=[];try{for(var u=this._internalStorage&&this._internalStorage.length||0,t=0;t<u;t++){var r=this._internalStorage.key(t);r.indexOf(n)===0&&i.push(r)}}catch(f){}return i};return n}();n.SafeStorage=t})(OfficeExt||(OfficeExt={}));OSF.OUtil=function(){var u="on",p="configurable",b="writable",f="enumerable",c="undefined",i=!0,n=!1,l=2147483647,t=null,a=-1,w="&_xdm_Info=",k="&_serializer_version=",d="_xdm_",g="_serializer_version=",e="#",s={},nt=3e4,o=t,h=t,r=+new Date;function y(){var n=l*Math.random();n^=r^(new Date).getMilliseconds()<<Math.floor(Math.random()*21);return n.toString(16)}function v(){if(!o){try{var n=window.sessionStorage}catch(i){n=t}o=new OfficeExt.SafeStorage(n)}return o}return{set_entropy:function(n){if(typeof n=="string")for(var i=0;i<n.length;i+=4){for(var u=0,t=0;t<4&&i+t<n.length;t++)u=(u<<8)+n.charCodeAt(i+t);r^=u}else r^=typeof n=="number"?n:l*Math.random();r&=l},extend:function(n,t){var i=function(){};i.prototype=t.prototype;n.prototype=new i;n.prototype.constructor=n;n.uber=t.prototype;t.prototype.constructor===Object.prototype.constructor&&(t.prototype.constructor=t)},setNamespace:function(n,t){t&&n&&!t[n]&&(t[n]={})},unsetNamespace:function(n,t){t&&n&&t[n]&&delete t[n]},loadScript:function(r,u,f){if(r&&u){var l=window.document,e=s[r];if(e)e.loaded?u():e.pendingCallbacks.push(u);else{var o=l.createElement("script");o.type="text/javascript";e={loaded:n,pendingCallbacks:[u],timer:t};s[r]=e;var c=function(){if(e.timer!=t){clearTimeout(e.timer);delete e.timer}e.loaded=i;for(var u=e.pendingCallbacks.length,n=0;n<u;n++){var r=e.pendingCallbacks.shift();r()}},h=function(){delete s[r];if(e.timer!=t){clearTimeout(e.timer);delete e.timer}for(var u=e.pendingCallbacks.length,n=0;n<u;n++){var i=e.pendingCallbacks.shift();i()}};o.readyState?o.onreadystatechange=function(){if(o.readyState=="loaded"||o.readyState=="complete"){o.onreadystatechange=t;c()}}:o.onload=c;o.onerror=h;f=f||nt;e.timer=setTimeout(h,f);o.src=r;l.getElementsByTagName("head")[0].appendChild(o)}}},loadCSS:function(n){if(n){var i=window.document,t=i.createElement("link");t.type="text/css";t.rel="stylesheet";t.href=n;i.getElementsByTagName("head")[0].appendChild(t)}},parseEnum:function(n,t){var i=t[n.trim()];if(typeof i==c){OsfMsAjaxFactory.msAjaxDebug.trace("invalid enumeration string:"+n);throw OsfMsAjaxFactory.msAjaxError.argument("str");}return i},delayExecutionAndCache:function(){var n={calc:arguments[0]};return function(){if(n.calc){n.val=n.calc.apply(this,arguments);delete n.calc}return n.val}},getUniqueId:function(){a=a+1;return a.toString()},formatString:function(){var n=arguments,t=n[0];return t.replace(/{(\d+)}/gm,function(t,i){var r=parseInt(i,10)+1;return n[r]===undefined?"{"+i+"}":n[r]})},generateConversationId:function(){return[y(),y(),(+new Date).toString()].join("_")},getFrameNameAndConversationId:function(n,t){var i=d+n+this.generateConversationId();t.setAttribute("name",i);return this.generateConversationId()},addXdmInfoAsHash:function(n,t){return OSF.OUtil.addInfoAsHash(n,w,t)},addSerializerVersionAsHash:function(n,t){return OSF.OUtil.addInfoAsHash(n,k,t)},addInfoAsHash:function(n,t,i){n=n.trim()||"";var r=n.split(e),f=r.shift(),u=r.join(e);return[f,e,u,t,i].join("")},parseXdmInfo:function(n){return OSF.OUtil.parseXdmInfoWithGivenFragment(n,window.location.hash)},parseXdmInfoWithGivenFragment:function(n,t){return OSF.OUtil.parseInfoWithGivenFragment(w,d,n,t)},parseSerializerVersion:function(n){return OSF.OUtil.parseSerializerVersionWithGivenFragment(n,window.location.hash)},parseSerializerVersionWithGivenFragment:function(n,t){return parseInt(OSF.OUtil.parseInfoWithGivenFragment(k,g,n,t))},parseInfoWithGivenFragment:function(n,i,r,u){var s=u.split(n),f=s.length>1?s[s.length-1]:t,h=v();if(!r&&h){var e=window.name.indexOf(i);if(e>-1){var o=window.name.indexOf(";",e);o==-1&&(o=window.name.length);var c=window.name.substring(e,o);f?h.setItem(c,f):f=h.getItem(c)}}return f},getConversationId:function(){var i=window.location.search,n=t;if(i){var r=i.indexOf("&");n=r>0?i.substring(1,r):i.substr(1);if(n&&n.charAt(n.length-1)==="="){n=n.substring(0,n.length-1);n&&(n=decodeURIComponent(n))}}return n},getInfoItems:function(n){var t=n.split("$");typeof t[1]==c&&(t=n.split("|"));return t},getConversationUrl:function(){var t="",r=OSF.OUtil.parseXdmInfo(i);if(r){var n=OSF.OUtil.getInfoItems(r);n!=undefined&&n.length>=3&&(t=n[2])}return t},validateParamObject:function(t,r){var u=Function._validateParams(arguments,[{name:"params",type:Object,mayBeNull:n},{name:"expectedProperties",type:Object,mayBeNull:n},{name:"callback",type:Function,mayBeNull:i}]);if(u)throw u;for(var f in r){u=Function._validateParameter(t[f],r[f],f);if(u)throw u;}},writeProfilerMark:function(n){if(window.msWriteProfilerMark){window.msWriteProfilerMark(n);OsfMsAjaxFactory.msAjaxDebug.trace(n)}},outputDebug:function(n){typeof Sys!==c&&Sys&&Sys.Debug&&OsfMsAjaxFactory.msAjaxDebug.trace(n)},defineNondefaultProperty:function(n,t,r,u){r=r||{};for(var e in u){var f=u[e];r[f]==undefined&&(r[f]=i)}Object.defineProperty(n,t,r);return n},defineNondefaultProperties:function(n,t,i){t=t||{};for(var r in t)OSF.OUtil.defineNondefaultProperty(n,r,t[r],i);return n},defineEnumerableProperty:function(n,t,i){return OSF.OUtil.defineNondefaultProperty(n,t,i,[f])},defineEnumerableProperties:function(n,t){return OSF.OUtil.defineNondefaultProperties(n,t,[f])},defineMutableProperty:function(n,t,i){return OSF.OUtil.defineNondefaultProperty(n,t,i,[b,f,p])},defineMutableProperties:function(n,t){return OSF.OUtil.defineNondefaultProperties(n,t,[b,f,p])},finalizeProperties:function(t,r){r=r||{};for(var o=Object.getOwnPropertyNames(t),s=o.length,f=0;f<s;f++){var e=o[f],u=Object.getOwnPropertyDescriptor(t,e);u.get||u.set||(u.writable=r.writable||n);u.configurable=r.configurable||n;u.enumerable=r.enumerable||i;Object.defineProperty(t,e,u)}return t},mapList:function(n,t){var i=[];if(n)for(var r in n)i.push(t(n[r]));return i},listContainsKey:function(t,r){for(var u in t)if(r==u)return i;return n},listContainsValue:function(t,r){for(var u in t)if(r==t[u])return i;return n},augmentList:function(n,t){var r=n.push?function(t,i){n.push(i)}:function(t,i){n[t]=i};for(var i in t)r(i,t[i])},redefineList:function(n,t){for(var r in n)delete n[r];for(var i in t)n[i]=t[i]},isArray:function(n){return Object.prototype.toString.apply(n)==="[object Array]"},isFunction:function(n){return Object.prototype.toString.apply(n)==="[object Function]"},isDate:function(n){return Object.prototype.toString.apply(n)==="[object Date]"},addEventListener:function(t,i,r){t.addEventListener?t.addEventListener(i,r,n):Sys.Browser.agent===Sys.Browser.InternetExplorer&&t.attachEvent?t.attachEvent(u+i,r):t[u+i]=r},removeEventListener:function(i,r,f){i.removeEventListener?i.removeEventListener(r,f,n):Sys.Browser.agent===Sys.Browser.InternetExplorer&&i.detachEvent?i.detachEvent(u+r,f):i[u+r]=t},encodeBase64:function(n){if(!n)return n;var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=[],i=[],o=0,c,e,s,r,u,f,t,v=n.length;do{c=n.charCodeAt(o++);e=n.charCodeAt(o++);s=n.charCodeAt(o++);t=0;r=c&255;u=c>>8;f=e&255;i[t++]=r>>2;i[t++]=(r&3)<<4|u>>4;i[t++]=(u&15)<<2|f>>6;i[t++]=f&63;if(!isNaN(e)){r=e>>8;u=s&255;f=s>>8;i[t++]=r>>2;i[t++]=(r&3)<<4|u>>4;i[t++]=(u&15)<<2|f>>6;i[t++]=f&63}if(isNaN(e))i[t-1]=64;else if(isNaN(s)){i[t-2]=64;i[t-1]=64}for(var h=0;h<t;h++)l.push(a.charAt(i[h]))}while(o<v);return l.join("")},getSessionStorage:function(){return v()},getLocalStorage:function(){if(!h){try{var n=window.localStorage}catch(i){n=t}h=new OfficeExt.SafeStorage(n)}return h},convertIntToCssHexColor:function(n){return"#"+(Number(n)+16777216).toString(16).slice(-6)},attachClickHandler:function(n,t){n.onclick=function(){t()};n.ontouchend=function(n){t();n.preventDefault()}},getQueryStringParamValue:function(t,i){var u=Function._validateParams(arguments,[{name:"queryString",type:String,mayBeNull:n},{name:"paramName",type:String,mayBeNull:n}]);if(u){OsfMsAjaxFactory.msAjaxDebug.trace("OSF_Outil_getQueryStringParamValue: Parameters cannot be null.");return""}var r=new RegExp("[\\?&]"+i+"=([^&#]*)","i");if(!r.test(t)){OsfMsAjaxFactory.msAjaxDebug.trace("OSF_Outil_getQueryStringParamValue: The parameter is not found.");return""}return r.exec(t)[1]},isiOS:function(){return window.navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?i:n},shallowCopy:function(n){var i=n.constructor();for(var t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i}}}();OSF.OUtil.Guid=function(){var n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return{generateNewGuid:function(){for(var i="",r=+new Date,t=0;t<32&&r>0;t++){(t==8||t==12||t==16||t==20)&&(i+="-");i+=n[r%16];r=Math.floor(r/16)}for(;t<32;t++){(t==8||t==12||t==16||t==20)&&(i+="-");i+=n[Math.floor(Math.random()*16)]}return i}}}();window.OSF=OSF;OSF.OUtil.setNamespace("OSF",window);OSF.AppName={Unsupported:0,Excel:1,Word:2,PowerPoint:4,Outlook:8,ExcelWebApp:16,WordWebApp:32,OutlookWebApp:64,Project:128,AccessWebApp:256,PowerpointWebApp:512,ExcelIOS:1024,Sway:2048,WordIOS:4096,PowerPointIOS:8192,Access:16384,Lync:32768,OutlookIOS:65536};OSF.InternalPerfMarker={DataCoercionBegin:"Agave.HostCall.CoerceDataStart",DataCoercionEnd:"Agave.HostCall.CoerceDataEnd"};OSF.HostCallPerfMarker={IssueCall:"Agave.HostCall.IssueCall",ReceiveResponse:"Agave.HostCall.ReceiveResponse",RuntimeExceptionRaised:"Agave.HostCall.RuntimeExecptionRaised"};OSF.AgaveHostAction={Select:0,UnSelect:1,CancelDialog:2,InsertAgave:3,CtrlF6In:4,CtrlF6Exit:5,CtrlF6ExitShift:6,SelectWithError:7};OSF.SharedConstants={NotificationConversationIdSuffix:"_ntf"};OSF.OfficeAppContext=function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y){var p=this;p._id=n;p._appName=t;p._appVersion=i;p._appUILocale=r;p._dataLocale=u;p._docUrl=f;p._clientMode=e;p._settings=o;p._reason=s;p._osfControlType=h;p._eToken=c;p._correlationId=l;p._appInstanceId=a;p._touchEnabled=v;p._commerceAllowed=y;p.get_id=function(){return this._id};p.get_appName=function(){return this._appName};p.get_appVersion=function(){return this._appVersion};p.get_appUILocale=function(){return this._appUILocale};p.get_dataLocale=function(){return this._dataLocale};p.get_docUrl=function(){return this._docUrl};p.get_clientMode=function(){return this._clientMode};p.get_bindings=function(){return this._bindings};p.get_settings=function(){return this._settings};p.get_reason=function(){return this._reason};p.get_osfControlType=function(){return this._osfControlType};p.get_eToken=function(){return this._eToken};p.get_correlationId=function(){return this._correlationId};p.get_appInstanceId=function(){return this._appInstanceId};p.get_touchEnabled=function(){return this._touchEnabled};p.get_commerceAllowed=function(){return this._commerceAllowed}};OSF.OsfControlType={DocumentLevel:0,ContainerLevel:1};OSF.ClientMode={ReadOnly:0,ReadWrite:1};OSF.OUtil.setNamespace("Microsoft",window);OSF.OUtil.setNamespace("Office",Microsoft);OSF.OUtil.setNamespace("Client",Microsoft.Office);OSF.OUtil.setNamespace("WebExtension",Microsoft.Office);Microsoft.Office.WebExtension.InitializationReason={Inserted:"inserted",DocumentOpened:"documentOpened"};Microsoft.Office.WebExtension.ValueFormat={Unformatted:"unformatted",Formatted:"formatted"};Microsoft.Office.WebExtension.FilterType={All:"all"};Microsoft.Office.WebExtension.Parameters={BindingType:"bindingType",CoercionType:"coercionType",ValueFormat:"valueFormat",FilterType:"filterType",Columns:"columns",SampleData:"sampleData",GoToType:"goToType",SelectionMode:"selectionMode",Id:"id",PromptText:"promptText",ItemName:"itemName",FailOnCollision:"failOnCollision",StartRow:"startRow",StartColumn:"startColumn",RowCount:"rowCount",ColumnCount:"columnCount",Callback:"callback",AsyncContext:"asyncContext",Data:"data",Rows:"rows",OverwriteIfStale:"overwriteIfStale",FileType:"fileType",EventType:"eventType",Handler:"handler",SliceSize:"sliceSize",SliceIndex:"sliceIndex",ActiveView:"activeView",Status:"status",Xml:"xml",Namespace:"namespace",Prefix:"prefix",XPath:"xPath",TaskId:"taskId",FieldId:"fieldId",FieldValue:"fieldValue",ServerUrl:"serverUrl",ListName:"listName",ResourceId:"resourceId",ViewType:"viewType",ViewName:"viewName",GetRawValue:"getRawValue",CellFormat:"cellFormat",TableOptions:"tableOptions",TaskIndex:"taskIndex",ResourceIndex:"resourceIndex"};OSF.OUtil.setNamespace("DDA",OSF);OSF.DDA.DocumentMode={ReadOnly:1,ReadWrite:0};OSF.DDA.PropertyDescriptors={AsyncResultStatus:"AsyncResultStatus"};OSF.DDA.EventDescriptors={};OSF.DDA.ListDescriptors={};OSF.DDA.getXdmEventName=function(n,t){return t==Microsoft.Office.WebExtension.EventType.BindingSelectionChanged||t==Microsoft.Office.WebExtension.EventType.BindingDataChanged?n+"_"+t:t};OSF.DDA.MethodDispId={dispidMethodMin:64,dispidGetSelectedDataMethod:64,dispidSetSelectedDataMethod:65,dispidAddBindingFromSelectionMethod:66,dispidAddBindingFromPromptMethod:67,dispidGetBindingMethod:68,dispidReleaseBindingMethod:69,dispidGetBindingDataMethod:70,dispidSetBindingDataMethod:71,dispidAddRowsMethod:72,dispidClearAllRowsMethod:73,dispidGetAllBindingsMethod:74,dispidLoadSettingsMethod:75,dispidSaveSettingsMethod:76,dispidGetDocumentCopyMethod:77,dispidAddBindingFromNamedItemMethod:78,dispidAddColumnsMethod:79,dispidGetDocumentCopyChunkMethod:80,dispidReleaseDocumentCopyMethod:81,dispidNavigateToMethod:82,dispidGetActiveViewMethod:83,dispidGetDocumentThemeMethod:84,dispidGetOfficeThemeMethod:85,dispidGetFilePropertiesMethod:86,dispidClearFormatsMethod:87,dispidSetTableOptionsMethod:88,dispidSetFormatsMethod:89,dispidExecuteRichApiRequestMethod:93,dispidAppCommandInvocationCompletedMethod:94,dispidAddDataPartMethod:128,dispidGetDataPartByIdMethod:129,dispidGetDataPartsByNamespaceMethod:130,dispidGetDataPartXmlMethod:131,dispidGetDataPartNodesMethod:132,dispidDeleteDataPartMethod:133,dispidGetDataNodeValueMethod:134,dispidGetDataNodeXmlMethod:135,dispidGetDataNodesMethod:136,dispidSetDataNodeValueMethod:137,dispidSetDataNodeXmlMethod:138,dispidAddDataNamespaceMethod:139,dispidGetDataUriByPrefixMethod:140,dispidGetDataPrefixByUriMethod:141,dispidMethodMax:141,dispidGetSelectedTaskMethod:110,dispidGetSelectedResourceMethod:111,dispidGetTaskMethod:112,dispidGetResourceFieldMethod:113,dispidGetWSSUrlMethod:114,dispidGetTaskFieldMethod:115,dispidGetProjectFieldMethod:116,dispidGetSelectedViewMethod:117,dispidGetTaskByIndexMethod:118,dispidGetResourceByIndexMethod:119,dispidSetTaskFieldMethod:120,dispidSetResourceFieldMethod:121,dispidGetMaxTaskIndexMethod:122,dispidGetMaxResourceIndexMethod:123};OSF.DDA.EventDispId={dispidEventMin:0,dispidInitializeEvent:0,dispidSettingsChangedEvent:1,dispidDocumentSelectionChangedEvent:2,dispidBindingSelectionChangedEvent:3,dispidBindingDataChangedEvent:4,dispidDocumentOpenEvent:5,dispidDocumentCloseEvent:6,dispidActiveViewChangedEvent:7,dispidDocumentThemeChangedEvent:8,dispidOfficeThemeChangedEvent:9,dispidActivationStatusChangedEvent:32,dispidAppCommandInvokedEvent:39,dispidTaskSelectionChangedEvent:56,dispidResourceSelectionChangedEvent:57,dispidViewSelectionChangedEvent:58,dispidDataNodeAddedEvent:60,dispidDataNodeReplacedEvent:61,dispidDataNodeDeletedEvent:62,dispidEventMax:63};OSF.DDA.ErrorCodeManager=function(){var n={};return{getErrorArgs:function(t){return n[t]||n[this.errorCodes.ooeInternalError]},addErrorMessage:function(t,i){n[t]=i},errorCodes:{ooeSuccess:0,ooeCoercionTypeNotSupported:1e3,ooeGetSelectionNotMatchDataType:1001,ooeCoercionTypeNotMatchBinding:1002,ooeInvalidGetRowColumnCounts:1003,ooeSelectionNotSupportCoercionType:1004,ooeInvalidGetStartRowColumn:1005,ooeNonUniformPartialGetNotSupported:1006,ooeGetDataIsTooLarge:1008,ooeFileTypeNotSupported:1009,ooeGetDataParametersConflict:1010,ooeInvalidGetColumns:1011,ooeInvalidGetRows:1012,ooeInvalidReadForBlankRow:1013,ooeUnsupportedDataObject:2e3,ooeCannotWriteToSelection:2001,ooeDataNotMatchSelection:2002,ooeOverwriteWorksheetData:2003,ooeDataNotMatchBindingSize:2004,ooeInvalidSetStartRowColumn:2005,ooeInvalidDataFormat:2006,ooeDataNotMatchCoercionType:2007,ooeDataNotMatchBindingType:2008,ooeSetDataIsTooLarge:2009,ooeNonUniformPartialSetNotSupported:2010,ooeInvalidSetColumns:2011,ooeInvalidSetRows:2012,ooeSetDataParametersConflict:2013,ooeCellDataAmountBeyondLimits:2014,ooeSelectionCannotBound:3e3,ooeBindingNotExist:3002,ooeBindingToMultipleSelection:3003,ooeInvalidSelectionForBindingType:3004,ooeOperationNotSupportedOnThisBindingType:3005,ooeNamedItemNotFound:3006,ooeMultipleNamedItemFound:3007,ooeInvalidNamedItemForBindingType:3008,ooeUnknownBindingType:3009,ooeOperationNotSupportedOnMatrixData:3010,ooeInvalidColumnsForBinding:3011,ooeSettingNameNotExist:4e3,ooeSettingsCannotSave:4001,ooeSettingsAreStale:4002,ooeOperationNotSupported:5e3,ooeInternalError:5001,ooeDocumentReadOnly:5002,ooeEventHandlerNotExist:5003,ooeInvalidApiCallInContext:5004,ooeShuttingDown:5005,ooeUnsupportedEnumeration:5007,ooeIndexOutOfRange:5008,ooeBrowserAPINotSupported:5009,ooeInvalidParam:5010,ooeRequestTimeout:5011,ooeTooManyIncompleteRequests:5100,ooeRequestTokenUnavailable:5101,ooeCustomXmlNodeNotFound:6e3,ooeCustomXmlError:6100,ooeCustomXmlExceedQuota:6101,ooeCustomXmlOutOfDate:6102,ooeNoCapability:7e3,ooeCannotNavTo:7001,ooeSpecifiedIdNotExist:7002,ooeNavOutOfBound:7004,ooeElementMissing:8e3,ooeProtectedError:8001,ooeInvalidCellsValue:8010,ooeInvalidTableOptionValue:8011,ooeInvalidFormatValue:8012,ooeRowIndexOutOfRange:8020,ooeColIndexOutOfRange:8021,ooeFormatValueOutOfRange:8022,ooeCellFormatAmountBeyondLimits:8023,ooeMemoryFileLimit:11e3,ooeNetworkProblemRetrieveFile:11001,ooeInvalidSliceSize:11002,ooeInvalidCallback:11101},initializeErrorMessages:function(t){n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotSupported]={name:t.L_InvalidCoercion,message:t.L_CoercionTypeNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetSelectionNotMatchDataType]={name:t.L_DataReadError,message:t.L_GetSelectionNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotMatchBinding]={name:t.L_InvalidCoercion,message:t.L_CoercionTypeNotMatchBinding};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetRowColumnCounts]={name:t.L_DataReadError,message:t.L_InvalidGetRowColumnCounts};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSelectionNotSupportCoercionType]={name:t.L_DataReadError,message:t.L_SelectionNotSupportCoercionType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetStartRowColumn]={name:t.L_DataReadError,message:t.L_InvalidGetStartRowColumn};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNonUniformPartialGetNotSupported]={name:t.L_DataReadError,message:t.L_NonUniformPartialGetNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetDataIsTooLarge]={name:t.L_DataReadError,message:t.L_GetDataIsTooLarge};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeFileTypeNotSupported]={name:t.L_DataReadError,message:t.L_FileTypeNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetDataParametersConflict]={name:t.L_DataReadError,message:t.L_GetDataParametersConflict};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetColumns]={name:t.L_DataReadError,message:t.L_InvalidGetColumns};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetRows]={name:t.L_DataReadError,message:t.L_InvalidGetRows};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidReadForBlankRow]={name:t.L_DataReadError,message:t.L_InvalidReadForBlankRow};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedDataObject]={name:t.L_DataWriteError,message:t.L_UnsupportedDataObject};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCannotWriteToSelection]={name:t.L_DataWriteError,message:t.L_CannotWriteToSelection};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchSelection]={name:t.L_DataWriteError,message:t.L_DataNotMatchSelection};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOverwriteWorksheetData]={name:t.L_DataWriteError,message:t.L_OverwriteWorksheetData};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchBindingSize]={name:t.L_DataWriteError,message:t.L_DataNotMatchBindingSize};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetStartRowColumn]={name:t.L_DataWriteError,message:t.L_InvalidSetStartRowColumn};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidDataFormat]={name:t.L_InvalidFormat,message:t.L_InvalidDataFormat};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchCoercionType]={name:t.L_InvalidDataObject,message:t.L_DataNotMatchCoercionType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchBindingType]={name:t.L_InvalidDataObject,message:t.L_DataNotMatchBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSetDataIsTooLarge]={name:t.L_DataWriteError,message:t.L_SetDataIsTooLarge};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNonUniformPartialSetNotSupported]={name:t.L_DataWriteError,message:t.L_NonUniformPartialSetNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetColumns]={name:t.L_DataWriteError,message:t.L_InvalidSetColumns};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetRows]={name:t.L_DataWriteError,message:t.L_InvalidSetRows};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSetDataParametersConflict]={name:t.L_DataWriteError,message:t.L_SetDataParametersConflict};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSelectionCannotBound]={name:t.L_BindingCreationError,message:t.L_SelectionCannotBound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeBindingNotExist]={name:t.L_InvalidBindingError,message:t.L_BindingNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeBindingToMultipleSelection]={name:t.L_BindingCreationError,message:t.L_BindingToMultipleSelection};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSelectionForBindingType]={name:t.L_BindingCreationError,message:t.L_InvalidSelectionForBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupportedOnThisBindingType]={name:t.L_InvalidBindingOperation,message:t.L_OperationNotSupportedOnThisBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNamedItemNotFound]={name:t.L_BindingCreationError,message:t.L_NamedItemNotFound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeMultipleNamedItemFound]={name:t.L_BindingCreationError,message:t.L_MultipleNamedItemFound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidNamedItemForBindingType]={name:t.L_BindingCreationError,message:t.L_InvalidNamedItemForBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnknownBindingType]={name:t.L_InvalidBinding,message:t.L_UnknownBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupportedOnMatrixData]={name:t.L_InvalidBindingOperation,message:t.L_OperationNotSupportedOnMatrixData};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidColumnsForBinding]={name:t.L_InvalidBinding,message:t.L_InvalidColumnsForBinding};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingNameNotExist]={name:t.L_ReadSettingsError,message:t.L_SettingNameNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingsCannotSave]={name:t.L_SaveSettingsError,message:t.L_SettingsCannotSave};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingsAreStale]={name:t.L_SettingsStaleError,message:t.L_SettingsAreStale};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupported]={name:t.L_HostError,message:t.L_OperationNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError]={name:t.L_InternalError,message:t.L_InternalErrorDescription};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDocumentReadOnly]={name:t.L_PermissionDenied,message:t.L_DocumentReadOnly};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerNotExist]={name:t.L_EventRegistrationError,message:t.L_EventHandlerNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext]={name:t.L_InvalidAPICall,message:t.L_InvalidApiCallInContext};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeShuttingDown]={name:t.L_ShuttingDown,message:t.L_ShuttingDown};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedEnumeration]={name:t.L_UnsupportedEnumeration,message:t.L_UnsupportedEnumerationMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeIndexOutOfRange]={name:t.L_IndexOutOfRange,message:t.L_IndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeBrowserAPINotSupported]={name:t.L_APINotSupported,message:t.L_BrowserAPINotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequestTimeout]={name:t.L_APICallFailed,message:t.L_RequestTimeout};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeTooManyIncompleteRequests]={name:t.L_APICallFailed,message:t.L_TooManyIncompleteRequests};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequestTokenUnavailable]={name:t.L_APICallFailed,message:t.L_RequestTokenUnavailable};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlNodeNotFound]={name:t.L_InvalidNode,message:t.L_CustomXmlNodeNotFound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlError]={name:t.L_CustomXmlError,message:t.L_CustomXmlError};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlExceedQuota]={name:t.L_CustomXmlError,message:t.L_CustomXmlError};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlOutOfDate]={name:t.L_CustomXmlError,message:t.L_CustomXmlError};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability]={name:t.L_PermissionDenied,message:t.L_NoCapability};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCannotNavTo]={name:t.L_CannotNavigateTo,message:t.L_CannotNavigateTo};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSpecifiedIdNotExist]={name:t.L_SpecifiedIdNotExist,message:t.L_SpecifiedIdNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNavOutOfBound]={name:t.L_NavOutOfBound,message:t.L_NavOutOfBound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCellDataAmountBeyondLimits]={name:t.L_DataWriteReminder,message:t.L_CellDataAmountBeyondLimits};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeElementMissing]={name:t.L_MissingParameter,message:t.L_ElementMissing};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeProtectedError]={name:t.L_PermissionDenied,message:t.L_NoCapability};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidCellsValue]={name:t.L_InvalidValue,message:t.L_InvalidCellsValue};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidTableOptionValue]={name:t.L_InvalidValue,message:t.L_InvalidTableOptionValue};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidFormatValue]={name:t.L_InvalidValue,message:t.L_InvalidFormatValue};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRowIndexOutOfRange]={name:t.L_OutOfRange,message:t.L_RowIndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeColIndexOutOfRange]={name:t.L_OutOfRange,message:t.L_ColIndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeFormatValueOutOfRange]={name:t.L_OutOfRange,message:t.L_FormatValueOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCellFormatAmountBeyondLimits]={name:t.L_FormattingReminder,message:t.L_CellFormatAmountBeyondLimits};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeMemoryFileLimit]={name:t.L_MemoryLimit,message:t.L_CloseFileBeforeRetrieve};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNetworkProblemRetrieveFile]={name:t.L_NetworkProblem,message:t.L_NetworkProblemRetrieveFile};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSliceSize]={name:t.L_InvalidValue,message:t.L_SliceSizeNotSupported}}}}();Microsoft.Office.WebExtension.ApplicationMode={WebEditor:"webEditor",WebViewer:"webViewer",Client:"client"};Microsoft.Office.WebExtension.DocumentMode={ReadOnly:"readOnly",ReadWrite:"readWrite"};OSF.NamespaceManager=function(){var t,n=!1;return{enableShortcut:function(){if(!n){window.Office?t=window.Office:OSF.OUtil.setNamespace("Office",window);window.Office=Microsoft.Office.WebExtension;n=!0}},disableShortcut:function(){if(n){t?window.Office=t:OSF.OUtil.unsetNamespace("Office",window);n=!1}}}}();OSF.NamespaceManager.enableShortcut();Microsoft.Office.WebExtension.useShortNamespace=function(n){n?OSF.NamespaceManager.enableShortcut():OSF.NamespaceManager.disableShortcut()};Microsoft.Office.WebExtension.select=function(n,t){var i;if(n&&typeof n=="string"){var r=n.indexOf("#");if(r!=-1){var o=n.substring(0,r),e=n.substring(r+1);switch(o){case"binding":case"bindings":e&&(i=new OSF.DDA.BindingPromise(e))}}}if(i){i.onFail=t;return i}else if(t){var u=typeof t;if(u=="function"){var f={};f[Microsoft.Office.WebExtension.Parameters.Callback]=t;OSF.DDA.issueAsyncResult(f,OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext,OSF.DDA.ErrorCodeManager.getErrorArgs(OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext))}else throw OSF.OUtil.formatString(Strings.OfficeOM.L_CallbackNotAFunction,u);}};OSF.DDA.Context=function(n,t,i,r,u){var f=this;OSF.OUtil.defineEnumerableProperties(f,{contentLanguage:{value:n.get_dataLocale()},displayLanguage:{value:n.get_appUILocale()},touchEnabled:{value:n.get_touchEnabled()},commerceAllowed:{value:n.get_commerceAllowed()}});t&&OSF.OUtil.defineEnumerableProperty(f,"document",{value:t});i&&OSF.OUtil.defineEnumerableProperty(f,"license",{value:i});if(r){var e=r.displayName||"appOM";delete r.displayName;OSF.OUtil.defineEnumerableProperty(f,e,{value:r})}u&&OSF.OUtil.defineEnumerableProperty(f,"officeTheme",{get:function(){return u()}})};OSF.DDA.OutlookContext=function(n,t,i,r,u){OSF.DDA.OutlookContext.uber.constructor.call(this,n,null,i,r,u);t&&OSF.OUtil.defineEnumerableProperty(this,"roamingSettings",{value:t})};OSF.OUtil.extend(OSF.DDA.OutlookContext,OSF.DDA.Context);OSF.DDA.OutlookAppOm=function(){};OSF.DDA.Document=function(n,t){var i;switch(n.get_clientMode()){case OSF.ClientMode.ReadOnly:i=Microsoft.Office.WebExtension.DocumentMode.ReadOnly;break;case OSF.ClientMode.ReadWrite:i=Microsoft.Office.WebExtension.DocumentMode.ReadWrite}t&&OSF.OUtil.defineEnumerableProperty(this,"settings",{value:t});OSF.OUtil.defineMutableProperties(this,{mode:{value:i},url:{value:n.get_docUrl()}})};OSF.DDA.JsomDocument=function(n,t,i){var r=this;OSF.DDA.JsomDocument.uber.constructor.call(r,n,i);t&&OSF.OUtil.defineEnumerableProperty(r,"bindings",{get:function(){return t}});var u=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(r,[u.GetSelectedDataAsync,u.SetSelectedDataAsync]);OSF.DDA.DispIdHost.addEventSupport(r,new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.DocumentSelectionChanged]))};OSF.OUtil.extend(OSF.DDA.JsomDocument,OSF.DDA.Document);OSF.OUtil.defineEnumerableProperty(Microsoft.Office.WebExtension,"context",{get:function(){var n;OSF&&OSF._OfficeAppFactory&&(n=OSF._OfficeAppFactory.getContext());return n}});OSF.DDA.License=function(n){OSF.OUtil.defineEnumerableProperty(this,"value",{value:n})};OSF.OUtil.setNamespace("AsyncResultEnum",OSF.DDA);OSF.DDA.AsyncResultEnum.Properties={Context:"Context",Value:"Value",Status:"Status",Error:"Error"};Microsoft.Office.WebExtension.AsyncResultStatus={Succeeded:"succeeded",Failed:"failed"};OSF.DDA.AsyncResultEnum.ErrorCode={Success:0,Failed:1};OSF.DDA.AsyncResultEnum.ErrorProperties={Name:"Name",Message:"Message",Code:"Code"};OSF.DDA.AsyncMethodNames={};OSF.DDA.AsyncMethodNames.addNames=function(n){for(var t in n){var i={};OSF.OUtil.defineEnumerableProperties(i,{id:{value:t},displayName:{value:n[t]}});OSF.DDA.AsyncMethodNames[t]=i}};OSF.DDA.AsyncMethodCall=function(n,t,i,r,u,f,e){var c="function",o=n.length,s=OSF.OUtil.delayExecutionAndCache(function(){return OSF.OUtil.formatString(Strings.OfficeOM.L_InvalidParameters,e)});function h(n,t){for(var u in n){var i=n[u],r=t[u];if(i["enum"])switch(typeof r){case"string":if(OSF.OUtil.listContainsValue(i["enum"],r))break;case"undefined":throw OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedEnumeration;break;default:throw s();}if(i.types&&!OSF.OUtil.listContainsValue(i.types,typeof r))throw s();}}function a(t,i,r){if(t.length<o)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_MissingRequiredArguments);for(var e=[],u=0;u<o;u++)e.push(t[u]);h(n,e);var l={};for(u=0;u<o;u++){var f=n[u],c=e[u];if(f.verify){var a=f.verify(c,i,r);if(!a)throw s();}l[f.name]=c}return l}function l(n,i,r,u){if(n.length>o+2)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyArguments);for(var f,l,v=n.length-1;v>=o;v--){var a=n[v];switch(typeof a){case"object":if(f)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalObjects);else f=a;break;case c:if(l)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalFunction);else l=a;break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Strings.OfficeOM.L_InValidOptionalArgument);}}f=f||{};for(var y in t)if(!OSF.OUtil.listContainsKey(f,y)){var e=undefined,s=t[y];s.calculate&&i&&(e=s.calculate(i,r,u));e||s.defaultValue===undefined||(e=s.defaultValue);f[y]=e}if(l)if(f[Microsoft.Office.WebExtension.Parameters.Callback])throw Strings.OfficeOM.L_RedundantCallbackSpecification;else f[Microsoft.Office.WebExtension.Parameters.Callback]=l;h(t,f);return f}this.verifyAndExtractCall=function(n,t,r){var e=a(n,t,r),h=l(n,e,t,r),u={};for(var c in e)u[c]=e[c];for(var o in h)u[o]=h[o];for(var s in i)u[s]=i[s](t,r);f&&(u=f(u,t,r));return u};this.processResponse=function(n,t,i,f){var e;e=n==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess?r?r(t,i,f):t:u?u(n,t):OSF.DDA.ErrorCodeManager.getErrorArgs(n);return e};this.getCallArgs=function(n){for(var t,u,r=n.length-1;r>=o;r--){var i=n[r];switch(typeof i){case"object":t=i;break;case c:u=i}}t=t||{};u&&(t[Microsoft.Office.WebExtension.Parameters.Callback]=u);return t}};OSF.DDA.AsyncMethodCallFactory=function(){function n(n){var i=null;if(n){i={};for(var r=n.length,t=0;t<r;t++)i[n[t].name]=n[t].value}return i}return{manufacture:function(t){var r=t.supportedOptions?n(t.supportedOptions):[],i=t.privateStateCallbacks?n(t.privateStateCallbacks):[];return new OSF.DDA.AsyncMethodCall(t.requiredArguments||[],r,i,t.onSucceeded,t.onFailed,t.checkCallArgs,t.method.displayName)}}}();OSF.DDA.AsyncMethodCalls={};OSF.DDA.AsyncMethodCalls.define=function(n){OSF.DDA.AsyncMethodCalls[n.method.id]=OSF.DDA.AsyncMethodCallFactory.manufacture(n)};OSF.DDA.Error=function(n,t,i){OSF.OUtil.defineEnumerableProperties(this,{name:{value:n},message:{value:t},code:{value:i}})};OSF.DDA.AsyncResult=function(n,t){OSF.OUtil.defineEnumerableProperties(this,{value:{value:n[OSF.DDA.AsyncResultEnum.Properties.Value]},status:{value:t?Microsoft.Office.WebExtension.AsyncResultStatus.Failed:Microsoft.Office.WebExtension.AsyncResultStatus.Succeeded}});n[OSF.DDA.AsyncResultEnum.Properties.Context]&&OSF.OUtil.defineEnumerableProperty(this,"asyncContext",{value:n[OSF.DDA.AsyncResultEnum.Properties.Context]});t&&OSF.OUtil.defineEnumerableProperty(this,"error",{value:new OSF.DDA.Error(t[OSF.DDA.AsyncResultEnum.ErrorProperties.Name],t[OSF.DDA.AsyncResultEnum.ErrorProperties.Message],t[OSF.DDA.AsyncResultEnum.ErrorProperties.Code])})};OSF.DDA.issueAsyncResult=function(n,t,i){var f=n[Microsoft.Office.WebExtension.Parameters.Callback];if(f){var u={};u[OSF.DDA.AsyncResultEnum.Properties.Context]=n[Microsoft.Office.WebExtension.Parameters.AsyncContext];var r;if(t==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)u[OSF.DDA.AsyncResultEnum.Properties.Value]=i;else{r={};i=i||OSF.DDA.ErrorCodeManager.getErrorArgs(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError);r[OSF.DDA.AsyncResultEnum.ErrorProperties.Code]=t||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;r[OSF.DDA.AsyncResultEnum.ErrorProperties.Name]=i.name||i;r[OSF.DDA.AsyncResultEnum.ErrorProperties.Message]=i.message||i}f(new OSF.DDA.AsyncResult(u,r))}};OSF.DDA.ListType=function(){var n={};return{setListType:function(t,i){n[t]=i},isListType:function(t){return OSF.OUtil.listContainsKey(n,t)},getDescriptor:function(t){return n[t]}}}();OSF.DDA.HostParameterMap=function(n,t){var c="fromHost",i=this,s="toHost",e=c,u="self",r={};r[Microsoft.Office.WebExtension.Parameters.Data]={toHost:function(n){if(n!=null&&n.rows!==undefined){var t={};t[OSF.DDA.TableDataProperties.TableRows]=n.rows;t[OSF.DDA.TableDataProperties.TableHeaders]=n.headers;n=t}return n},fromHost:function(n){return n}};r[Microsoft.Office.WebExtension.Parameters.SampleData]=r[Microsoft.Office.WebExtension.Parameters.Data];function f(i,u){var a=i?{}:undefined;for(var h in i){var s=i[h],o;if(OSF.DDA.ListType.isListType(h)){o=[];for(var v in s)o.push(f(s[v],u))}else if(OSF.OUtil.listContainsKey(r,h))o=r[h][u](s);else if(u==e&&n.preserveNesting(h))o=f(s,u);else{var c=t[h];if(c){var l=c[u];if(l){o=l[s];o===undefined&&(o=s)}}else o=s}a[h]=o}return a}function l(i,r){var o;for(var f in r){var e;e=n.isComplexType(f)?l(i,t[f][s]):i[f];if(e!=undefined){o||(o={});var h=r[f];h==u&&(h=f);o[h]=n.pack(f,e)}}return o}function o(i,r,f){f||(f={});for(var h in r){var a=r[h],s;s=a==u?i:i[a];if(s===null||s===undefined)f[h]=undefined;else{s=n.unpack(h,s);var c;if(n.isComplexType(h)){c=t[h][e];n.preserveNesting(h)?f[h]=o(s,c):o(s,c,f)}else{if(OSF.DDA.ListType.isListType(h)){c={};var v=OSF.DDA.ListType.getDescriptor(h);c[v]=u;for(var l in s)s[l]=o(s[l],c)}f[h]=s}}}return f}function h(n,i,r){var e=t[n][r],u;if(r=="toHost"){var h=f(i,r);u=l(h,e)}else if(r==c){var s=o(i,e);u=f(s,r)}return u}t||(t={});i.addMapping=function(n,i){var f,o;if(i.map){f=i.map;o={};for(var c in f){var l=f[c];l==u&&(l=c);o[l]=c}}else{f=i.toHost;o=i.fromHost}var r=t[n];if(r){var h=r[s];for(var v in h)f[v]=h[v];h=r[e];for(var a in h)o[a]=h[a]}else r=t[n]={};r[s]=f;r[e]=o};i.toHost=function(n,t){return h(n,t,s)};i.fromHost=function(n,t){return h(n,t,e)};i.self=u;i.addComplexType=function(t){n.addComplexType(t)};i.getDynamicType=function(t){return n.getDynamicType(t)};i.setDynamicType=function(t,i){n.setDynamicType(t,i)};i.dynamicTypes=r;i.doMapValues=function(n,t){return f(n,t)}};OSF.DDA.SpecialProcessor=function(n,t){var i=this;i.addComplexType=function(t){n.push(t)};i.getDynamicType=function(n){return t[n]};i.setDynamicType=function(n,i){t[n]=i};i.isComplexType=function(t){return OSF.OUtil.listContainsValue(n,t)};i.isDynamicType=function(n){return OSF.OUtil.listContainsKey(t,n)};i.preserveNesting=function(n){var t=[];OSF.DDA.PropertyDescriptors&&t.push(OSF.DDA.PropertyDescriptors.Subset);OSF.DDA.DataNodeEventProperties&&(t=t.concat([OSF.DDA.DataNodeEventProperties.OldNode,OSF.DDA.DataNodeEventProperties.NewNode,OSF.DDA.DataNodeEventProperties.NextSiblingNode]));return OSF.OUtil.listContainsValue(t,n)};i.pack=function(n,i){var r;r=this.isDynamicType(n)?t[n].toHost(i):i;return r};i.unpack=function(n,i){var r;r=this.isDynamicType(n)?t[n].fromHost(i):i;return r}};OSF.DDA.getDecoratedParameterMap=function(n,t){var i=new OSF.DDA.HostParameterMap(n),f=i.self;function r(n){var i=null;if(n){i={};for(var r=n.length,t=0;t<r;t++)i[n[t].name]=n[t].value}return i}i.define=function(n){var t={},u=r(n.toHost);if(n.invertible)t.map=u;else if(n.canonical)t.toHost=t.fromHost=u;else{t.toHost=u;t.fromHost=r(n.fromHost)}i.addMapping(n.type,t);n.isComplexType&&i.addComplexType(n.type)};for(var u in t)i.define(t[u]);return i};OSF.OUtil.setNamespace("DispIdHost",OSF.DDA);OSF.DDA.DispIdHost.Methods={InvokeMethod:"invokeMethod",AddEventHandler:"addEventHandler",RemoveEventHandler:"removeEventHandler"};OSF.DDA.DispIdHost.Delegates={ExecuteAsync:"executeAsync",RegisterEventAsync:"registerEventAsync",UnregisterEventAsync:"unregisterEventAsync",ParameterMap:"parameterMap"};OSF.DDA.DispIdHost.Facade=function(n,t){var r={},u=OSF.DDA.AsyncMethodNames,i=OSF.DDA.MethodDispId,s={GoToByIdAsync:i.dispidNavigateToMethod,GetSelectedDataAsync:i.dispidGetSelectedDataMethod,SetSelectedDataAsync:i.dispidSetSelectedDataMethod,GetDocumentCopyChunkAsync:i.dispidGetDocumentCopyChunkMethod,ReleaseDocumentCopyAsync:i.dispidReleaseDocumentCopyMethod,GetDocumentCopyAsync:i.dispidGetDocumentCopyMethod,AddFromSelectionAsync:i.dispidAddBindingFromSelectionMethod,AddFromPromptAsync:i.dispidAddBindingFromPromptMethod,AddFromNamedItemAsync:i.dispidAddBindingFromNamedItemMethod,GetAllAsync:i.dispidGetAllBindingsMethod,GetByIdAsync:i.dispidGetBindingMethod,ReleaseByIdAsync:i.dispidReleaseBindingMethod,GetDataAsync:i.dispidGetBindingDataMethod,SetDataAsync:i.dispidSetBindingDataMethod,AddRowsAsync:i.dispidAddRowsMethod,AddColumnsAsync:i.dispidAddColumnsMethod,DeleteAllDataValuesAsync:i.dispidClearAllRowsMethod,RefreshAsync:i.dispidLoadSettingsMethod,SaveAsync:i.dispidSaveSettingsMethod,GetActiveViewAsync:i.dispidGetActiveViewMethod,GetFilePropertiesAsync:i.dispidGetFilePropertiesMethod,GetOfficeThemeAsync:i.dispidGetOfficeThemeMethod,GetDocumentThemeAsync:i.dispidGetDocumentThemeMethod,ClearFormatsAsync:i.dispidClearFormatsMethod,SetTableOptionsAsync:i.dispidSetTableOptionsMethod,SetFormatsAsync:i.dispidSetFormatsMethod,ExecuteRichApiRequestAsync:i.dispidExecuteRichApiRequestMethod,AppCommandInvocationCompletedAsync:i.dispidAppCommandInvocationCompletedMethod,AddDataPartAsync:i.dispidAddDataPartMethod,GetDataPartByIdAsync:i.dispidGetDataPartByIdMethod,GetDataPartsByNameSpaceAsync:i.dispidGetDataPartsByNamespaceMethod,GetPartXmlAsync:i.dispidGetDataPartXmlMethod,GetPartNodesAsync:i.dispidGetDataPartNodesMethod,DeleteDataPartAsync:i.dispidDeleteDataPartMethod,GetNodeValueAsync:i.dispidGetDataNodeValueMethod,GetNodeXmlAsync:i.dispidGetDataNodeXmlMethod,GetRelativeNodesAsync:i.dispidGetDataNodesMethod,SetNodeValueAsync:i.dispidSetDataNodeValueMethod,SetNodeXmlAsync:i.dispidSetDataNodeXmlMethod,AddDataPartNamespaceAsync:i.dispidAddDataNamespaceMethod,GetDataPartNamespaceAsync:i.dispidGetDataUriByPrefixMethod,GetDataPartPrefixAsync:i.dispidGetDataPrefixByUriMethod,GetSelectedTask:i.dispidGetSelectedTaskMethod,GetTask:i.dispidGetTaskMethod,GetWSSUrl:i.dispidGetWSSUrlMethod,GetTaskField:i.dispidGetTaskFieldMethod,GetSelectedResource:i.dispidGetSelectedResourceMethod,GetResourceField:i.dispidGetResourceFieldMethod,GetProjectField:i.dispidGetProjectFieldMethod,GetSelectedView:i.dispidGetSelectedViewMethod,GetTaskByIndex:i.dispidGetTaskByIndexMethod,GetResourceByIndex:i.dispidGetResourceByIndexMethod,SetTaskField:i.dispidSetTaskFieldMethod,SetResourceField:i.dispidSetResourceFieldMethod,GetMaxTaskIndex:i.dispidGetMaxTaskIndexMethod,GetMaxResourceIndex:i.dispidGetMaxResourceIndexMethod};for(var o in s)u[o]&&(r[u[o].id]=s[o]);u=Microsoft.Office.WebExtension.EventType;i=OSF.DDA.EventDispId;var h={SettingsChanged:i.dispidSettingsChangedEvent,DocumentSelectionChanged:i.dispidDocumentSelectionChangedEvent,BindingSelectionChanged:i.dispidBindingSelectionChangedEvent,BindingDataChanged:i.dispidBindingDataChangedEvent,ActiveViewChanged:i.dispidActiveViewChangedEvent,OfficeThemeChanged:i.dispidOfficeThemeChangedEvent,DocumentThemeChanged:i.dispidDocumentThemeChangedEvent,AppCommandInvoked:i.dispidAppCommandInvokedEvent,TaskSelectionChanged:i.dispidTaskSelectionChangedEvent,ResourceSelectionChanged:i.dispidResourceSelectionChangedEvent,ViewSelectionChanged:i.dispidViewSelectionChangedEvent,DataNodeInserted:i.dispidDataNodeAddedEvent,DataNodeReplaced:i.dispidDataNodeReplacedEvent,DataNodeDeleted:i.dispidDataNodeDeletedEvent};for(var f in h)u[f]&&(r[u[f]]=h[f]);function e(n,t,i,r){if(typeof n=="number"){r||(r=t.getCallArgs(i));OSF.DDA.issueAsyncResult(r,n,OSF.DDA.ErrorCodeManager.getErrorArgs(n))}else throw n;}this[OSF.DDA.DispIdHost.Methods.InvokeMethod]=function(i,u,f,o){var s;try{var l=i.id,a=OSF.DDA.AsyncMethodCalls[l];s=a.verifyAndExtractCall(u,f,o);var h=r[l],v=n(l),c;c=t.toHost?t.toHost(h,s):s;v[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]({dispId:h,hostCallArgs:c,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:function(n,i){var r;r=n==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess?t.fromHost?t.fromHost(h,i):i:i;var u=a.processResponse(n,r,f,s);OSF.DDA.issueAsyncResult(s,n,u)}})}catch(y){e(y,a,u,s)}};this[OSF.DDA.DispIdHost.Methods.AddEventHandler]=function(i,u,f){var s,o,l;function a(n){if(n==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){var i=u.addEventHandler(o,l);i||(n=OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerAdditionFailed)}var t;n!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess&&(t=OSF.DDA.ErrorCodeManager.getErrorArgs(n));OSF.DDA.issueAsyncResult(s,n,t)}try{var h=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.AddHandlerAsync.id];s=h.verifyAndExtractCall(i,f,u);o=s[Microsoft.Office.WebExtension.Parameters.EventType];l=s[Microsoft.Office.WebExtension.Parameters.Handler];if(u.getEventHandlerCount(o)==0){var c=r[o],v=n(o)[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync];v({eventType:o,dispId:c,targetId:f.id||"",onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:a,onEvent:function(n){var i=t.fromHost(c,n);u.fireEvent(OSF.DDA.OMFactory.manufactureEventArgs(o,f,i))}})}else a(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)}catch(y){e(y,h,i,s)}};this[OSF.DDA.DispIdHost.Methods.RemoveEventHandler]=function(t,i,u){var o,f,c;function l(n){var t;n!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess&&(t=OSF.DDA.ErrorCodeManager.getErrorArgs(n));OSF.DDA.issueAsyncResult(o,n,t)}try{var a=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.RemoveHandlerAsync.id];o=a.verifyAndExtractCall(t,u,i);f=o[Microsoft.Office.WebExtension.Parameters.EventType];c=o[Microsoft.Office.WebExtension.Parameters.Handler];var h,s;if(c===null){s=i.clearEventHandlers(f);h=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess}else{s=i.removeEventHandler(f,c);h=s?OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess:OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerNotExist}if(s&&i.getEventHandlerCount(f)==0){var y=r[f],v=n(f)[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync];v({eventType:f,dispId:y,targetId:u.id||"",onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:l})}else l(h)}catch(p){e(p,a,t,o)}}};OSF.DDA.DispIdHost.addAsyncMethods=function(n,t,i){for(var f in t){var u=t[f],r=u.displayName;n[r]||OSF.OUtil.defineEnumerableProperty(n,r,{value:function(t){return function(){var r=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.InvokeMethod];r(t,arguments,n,i)}}(u)})}};OSF.DDA.DispIdHost.addEventSupport=function(n,t){var r=OSF.DDA.AsyncMethodNames.AddHandlerAsync.displayName,i=OSF.DDA.AsyncMethodNames.RemoveHandlerAsync.displayName;n[r]||OSF.OUtil.defineEnumerableProperty(n,r,{value:function(){var i=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.AddEventHandler];i(arguments,t,n)}});n[i]||OSF.OUtil.defineEnumerableProperty(n,i,{value:function(){var i=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.RemoveEventHandler];i(arguments,t,n)}})};if(!OsfMsAjaxFactory.isMsAjaxLoaded()&&!(OSF._OfficeAppFactory&&OSF._OfficeAppFactory&&OSF._OfficeAppFactory.getLoadScriptHelper&&OSF._OfficeAppFactory.getLoadScriptHelper().isScriptLoading(OSF.ConstantNames.MicrosoftAjaxId))){var msAjaxCDNPath=(window.location.protocol.toLowerCase()==="https:"?"https:":"http:")+"//ajax.aspnetcdn.com/ajax/3.5/MicrosoftAjax.js";OsfMsAjaxFactory.loadMsAjaxFull(function(){if(!OsfMsAjaxFactory.isMsAjaxLoaded())throw"Not able to load MicrosoftAjax.js.";})}OSF.OUtil.setNamespace("SafeArray",OSF.DDA);OSF.DDA.SafeArray.Response={Status:0,Payload:1};OSF.DDA.SafeArray.UniqueArguments={Offset:"offset",Run:"run",BindingSpecificData:"bindingSpecificData",MergedCellGuid:"{66e7831f-81b2-42e2-823c-89e872d541b3}"};OSF.OUtil.setNamespace("Delegate",OSF.DDA.SafeArray);OSF.DDA.SafeArray.Delegate._onException=function(n,t){var i,r=n.number;if(r)switch(r){case-2146828218:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability;break;case-2146827850:default:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError}t.onComplete&&t.onComplete(i||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError)};OSF.DDA.SafeArray.Delegate.SpecialProcessor=function(){function t(n){var t;try{var o=n.ubound(1),f=n.ubound(2);n=n.toArray();if(o==1&&f==1)t=[n];else{t=[];for(var u=0;u<o;u++){for(var i=[],r=0;r<f;r++){var e=n[u*f+r];e!=OSF.DDA.SafeArray.UniqueArguments.MergedCellGuid&&i.push(e)}i.length>0&&t.push(i)}}}catch(s){}return t}var i=[],n={};n[Microsoft.Office.WebExtension.Parameters.Data]=function(){var i=0,n=1;return{toHost:function(t){if(typeof t!="string"&&t[OSF.DDA.TableDataProperties.TableRows]!==undefined){var r=[];r[i]=t[OSF.DDA.TableDataProperties.TableRows];r[n]=t[OSF.DDA.TableDataProperties.TableHeaders];t=r}return t},fromHost:function(r){var f;if(r.toArray){var e=r.dimensions();if(e===2)f=t(r);else{var u=r.toArray();if(u.length===2&&(u[0]!=null&&u[0].toArray||u[1]!=null&&u[1].toArray)){f={};f[OSF.DDA.TableDataProperties.TableRows]=t(u[i]);f[OSF.DDA.TableDataProperties.TableHeaders]=t(u[n])}else f=u}}else f=r;return f}}}();OSF.DDA.SafeArray.Delegate.SpecialProcessor.uber.constructor.call(this,i,n);this.unpack=function(t,i){var r;if(this.isComplexType(t)||OSF.DDA.ListType.isListType(t)){var u=(i||typeof i=="unknown")&&i.toArray;r=u?i.toArray():i||{}}else r=this.isDynamicType(t)?n[t].fromHost(i):i;return r}};OSF.OUtil.extend(OSF.DDA.SafeArray.Delegate.SpecialProcessor,OSF.DDA.SpecialProcessor);OSF.DDA.SafeArray.Delegate.ParameterMap=OSF.DDA.getDecoratedParameterMap(new OSF.DDA.SafeArray.Delegate.SpecialProcessor,[{type:Microsoft.Office.WebExtension.Parameters.ValueFormat,toHost:[{name:Microsoft.Office.WebExtension.ValueFormat.Unformatted,value:0},{name:Microsoft.Office.WebExtension.ValueFormat.Formatted,value:1}]},{type:Microsoft.Office.WebExtension.Parameters.FilterType,toHost:[{name:Microsoft.Office.WebExtension.FilterType.All,value:0}]}]);OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.PropertyDescriptors.AsyncResultStatus,fromHost:[{name:Microsoft.Office.WebExtension.AsyncResultStatus.Succeeded,value:0},{name:Microsoft.Office.WebExtension.AsyncResultStatus.Failed,value:1}]});OSF.DDA.SafeArray.Delegate.executeAsync=function(n){function t(n){var i=n;if(OSF.OUtil.isArray(n))for(var f=i.length,r=0;r<f;r++)i[r]=t(i[r]);else if(OSF.OUtil.isDate(n))i=n.getVarDate();else if(typeof n=="object"&&!OSF.OUtil.isArray(n)){i=[];for(var u in n)OSF.OUtil.isFunction(n[u])||(i[u]=t(n[u]))}return i}try{n.onCalling&&n.onCalling();var i=+new Date;OSF.ClientHostController.execute(n.dispId,t(n.hostCallArgs),function(t){n.onReceiving&&n.onReceiving();var r=t.toArray(),e=r[OSF.DDA.SafeArray.Response.Status];if(n.onComplete){var u;if(e==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)if(r.length>2){u=[];for(var f=1;f<r.length;f++)u[f-1]=r[f]}else u=r[OSF.DDA.SafeArray.Response.Payload];else u=r[OSF.DDA.SafeArray.Response.Payload];n.onComplete(e,u)}OSF.AppTelemetry&&OSF.AppTelemetry.onMethodDone(n.dispId,n.hostCallArgs,Math.abs(+new Date-i),e)})}catch(r){OSF.DDA.SafeArray.Delegate._onException(r,n)}};OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent=function(n,t){var i=+new Date;return function(r){t.onReceiving&&t.onReceiving();var u=r.toArray?r.toArray()[OSF.DDA.SafeArray.Response.Status]:r;t.onComplete&&t.onComplete(u);OSF.AppTelemetry&&OSF.AppTelemetry.onRegisterDone(n,t.dispId,Math.abs(+new Date-i),u)}};OSF.DDA.SafeArray.Delegate.registerEventAsync=function(n){n.onCalling&&n.onCalling();var t=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(!0,n);try{OSF.ClientHostController.registerEvent(n.dispId,n.targetId,function(t,i){n.onEvent&&n.onEvent(i);OSF.AppTelemetry&&OSF.AppTelemetry.onEventDone(n.dispId)},t)}catch(i){OSF.DDA.SafeArray.Delegate._onException(i,n)}};OSF.DDA.SafeArray.Delegate.unregisterEventAsync=function(n){n.onCalling&&n.onCalling();var t=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(!1,n);try{OSF.ClientHostController.unregisterEvent(n.dispId,n.targetId,t)}catch(i){OSF.DDA.SafeArray.Delegate._onException(i,n)}};OSF.ClientMode={ReadWrite:0,ReadOnly:1};OSF.DDA.RichInitializationReason={1:Microsoft.Office.WebExtension.InitializationReason.Inserted,2:Microsoft.Office.WebExtension.InitializationReason.DocumentOpened};OSF.InitializationHelper=function(n,t,i,r,u){var f=this;f._hostInfo=n;f._webAppState=t;f._context=i;f._settings=r;f._hostFacade=u;f._initializeSettings=f.initializeSettings};OSF.InitializationHelper.prototype.deserializeSettings=function(n,t){var e="undefined",u,r=OSF.OUtil.getSessionStorage();if(r){var i=r.getItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey());if(i)n=typeof JSON!==e?JSON.parse(i):OsfMsAjaxFactory.msAjaxSerializer.deserialize(i,!0);else{i=typeof JSON!==e?JSON.stringify(n):OsfMsAjaxFactory.msAjaxSerializer.serialize(n);r.setItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey(),i)}}var f=OSF.DDA.SettingsManager.deserializeSettings(n);u=t?new OSF.DDA.RefreshableSettings(f):new OSF.DDA.Settings(f);return u};OSF.InitializationHelper.prototype.setAgaveHostCommunication=function(){};OSF.InitializationHelper.prototype.prepareRightBeforeWebExtensionInitialize=function(n){var f=new OSF.DDA.License(n.get_eToken()),u=OSF.DDA.OfficeTheme&&OSF.DDA.OfficeTheme.getOfficeTheme?OSF.DDA.OfficeTheme.getOfficeTheme:null;OSF._OfficeAppFactory.setContext(new OSF.DDA.Context(n,n.doc,f,null,u));var r,i,t=n.get_reason();r=OSF.DDA.DispIdHost.getClientDelegateMethods;i=OSF.DDA.SafeArray.Delegate.ParameterMap;t=OSF.DDA.RichInitializationReason[t];OSF._OfficeAppFactory.setHostFacade(new OSF.DDA.DispIdHost.Facade(r,i));Microsoft.Office.WebExtension.initialize(t)};OSF.DDA.DispIdHost.getClientDelegateMethods=function(n){var t={};t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.SafeArray.Delegate.executeAsync;t[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync]=OSF.DDA.SafeArray.Delegate.registerEventAsync;t[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync]=OSF.DDA.SafeArray.Delegate.unregisterEventAsync;if(OSF.DDA.AsyncMethodNames.RefreshAsync&&n==OSF.DDA.AsyncMethodNames.RefreshAsync.id){var r=function(n,t,i){return OSF.DDA.ClientSettingsManager.read(t,i)};t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.ClientSettingsManager.getSettingsExecuteMethod(r)}if(OSF.DDA.AsyncMethodNames.SaveAsync&&n==OSF.DDA.AsyncMethodNames.SaveAsync.id){var i=function(n,t,i){return OSF.DDA.ClientSettingsManager.write(n[OSF.DDA.SettingsManager.SerializedSettings],n[Microsoft.Office.WebExtension.Parameters.OverwriteIfStale],t,i)};t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.ClientSettingsManager.getSettingsExecuteMethod(i)}return t};var OSFRichclient;(function(n){var t=function(){function n(){}n.prototype.execute=function(n,t,i){window.external.Execute(n,t,i)};n.prototype.registerEvent=function(n,t,i,r){window.external.RegisterEvent(n,t,i,r)};n.prototype.unregisterEvent=function(n,t,i){window.external.UnregisterEvent(n,t,i)};return n}();n.RichClientHostController=t})(OSFRichclient||(OSFRichclient={}));OSF.ClientHostController=new OSFRichclient.RichClientHostController;var OfficeExt;(function(n){(function(t){var i=function(){var t=null;function n(){this._osfOfficeTheme=t;this._osfOfficeThemeTimeStamp=t}n.prototype.getOfficeTheme=function(){var u="GetOfficeThemeInfo",t=this;if(OSF.DDA._OsfControlContext){if(t._osfOfficeTheme&&t._osfOfficeThemeTimeStamp&&+new Date-t._osfOfficeThemeTimeStamp<n._osfOfficeThemeCacheValidPeriod)OSF.AppTelemetry&&OSF.AppTelemetry.onPropertyDone(u,0);else{var f=+new Date,e=OSF.DDA._OsfControlContext.GetOfficeThemeInfo(),i=+new Date;OSF.AppTelemetry&&OSF.AppTelemetry.onPropertyDone(u,Math.abs(i-f));t._osfOfficeTheme=JSON.parse(e);for(var r in t._osfOfficeTheme)t._osfOfficeTheme[r]=OSF.OUtil.convertIntToCssHexColor(t._osfOfficeTheme[r]);t._osfOfficeThemeTimeStamp=i}return t._osfOfficeTheme}};n.instance=function(){n._instance==t&&(n._instance=new n);return n._instance};n._osfOfficeThemeCacheValidPeriod=5e3;n._instance=t;return n}();t.OfficeThemeManager=i;OSF.OUtil.setNamespace("OfficeTheme",OSF.DDA);OSF.DDA.OfficeTheme.getOfficeTheme=n.OfficeTheme.OfficeThemeManager.instance().getOfficeTheme})(n.OfficeTheme||(n.OfficeTheme={}));var t=n.OfficeTheme})(OfficeExt||(OfficeExt={}));OSF.DDA.ClientSettingsManager={getSettingsExecuteMethod:function(n){return function(t){var r,i;try{i=n(t.hostCallArgs,t.onCalling,t.onReceiving);r=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess}catch(u){r=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;i={name:Strings.OfficeOM.L_InternalError,message:u}}t.onComplete&&t.onComplete(r,i)}},read:function(n,t){var r=[],u=[];n&&n();OSF.DDA._OsfControlContext.GetSettings().Read(r,u);t&&t();for(var f={},i=0;i<r.length;i++)f[r[i]]=u[i];return f},write:function(n,t,i,r){var e=[],f=[];for(var u in n){e.push(u);f.push(n[u])}i&&i();OSF.DDA._OsfControlContext.GetSettings().Write(e,f);r&&r()}};OSF.InitializationHelper.prototype.initializeSettings=function(n){var i=OSF.DDA.ClientSettingsManager.read();return this.deserializeSettings(i,n)};OSF.InitializationHelper.prototype.getAppContext=function(n,t){var u="undefined",e,i=OSF.DDA._OsfControlContext=window.external.GetContext(),f=i.GetAppType(),h=!1;for(var b in OSF.AppName)if(OSF.AppName[b]==f){h=!0;break}if(!h)throw"Unsupported client type "+f;var w=i.GetSolutionRef(),p=i.GetAppVersionMajor(),k=i.GetAppUILocale(),nt=i.GetAppDataLocale(),g=i.GetDocUrl(),d=i.GetAppCapabilities(),y=i.GetActivationMode(),a=i.GetControlIntegrationLevel(),v=[],r;try{r=i.GetSolutionToken()}catch(tt){}var s;typeof i.GetCorrelationId!==u&&(s=i.GetCorrelationId());var o;typeof i.GetInstanceId!==u&&(o=i.GetInstanceId());var l;typeof i.GetTouchEnabled!==u&&(l=i.GetTouchEnabled());var c;typeof i.GetCommerceAllowed!==u&&(c=i.GetCommerceAllowed());r=r?r.toString():"";e=new OSF.OfficeAppContext(w,f,p,k,nt,g,d,v,y,a,r,s,o,l,c);OSF.AppTelemetry&&OSF.AppTelemetry.initialize(e);t(e)};(function(){var n=function(){var e=function(n){n&&OSF.OUtil.loadScript(n,function(){OsfMsAjaxFactory.msAjaxDebug.trace("loaded customized script:"+n)})},u,f,n,t=null,r=OSF.OUtil.parseXdmInfo();if(r){n=OSF.OUtil.getInfoItems(r);if(n&&n.length>=3){u=n[0];f=n[2];t=Microsoft.Office.Common.XdmCommunicationManager.connect(u,window.parent,f)}}var i=null;if(t)try{t.invoke("getCustomizedScriptPathAsync",function(n,t){e(n===0?t:null)},{__timeout__:1e3})}catch(o){OsfMsAjaxFactory.msAjaxDebug.trace("no script override through cross frame communication.")}else{try{typeof window.external.getCustomizedScriptPath!="undefined"&&(i=window.external.getCustomizedScriptPath())}catch(o){OsfMsAjaxFactory.msAjaxDebug.trace("no script override through window.external.")}e(i)}};OSF._OfficeAppFactory.getLoadScriptHelper&&OSF._OfficeAppFactory.getLoadScriptHelper().waitForScripts([OSF.ConstantNames.MicrosoftAjaxId],n)})();Microsoft.Office.WebExtension.EventType={};OSF.EventDispatch=function(n){this._eventHandlers={};for(var i in n){var t=n[i];this._eventHandlers[t]=[]}};OSF.EventDispatch.prototype={getSupportedEvents:function(){var n=[];for(var t in this._eventHandlers)n.push(t);return n},supportsEvent:function(n){var t=!1;for(var i in this._eventHandlers)if(n==i){t=!0;break}return t},hasEventHandler:function(n,t){var i=this._eventHandlers[n];if(i&&i.length>0)for(var r in i)if(i[r]===t)return!0;return!1},addEventHandler:function(n,t){if(typeof t!="function")return!1;var i=this._eventHandlers[n];if(i&&!this.hasEventHandler(n,t)){i.push(t);return!0}else return!1},removeEventHandler:function(n,t){var i=this._eventHandlers[n];if(i&&i.length>0)for(var r=0;r<i.length;r++)if(i[r]===t){i.splice(r,1);return!0}return!1},clearEventHandlers:function(n){if(typeof this._eventHandlers[n]!="undefined"&&this._eventHandlers[n].length>0){this._eventHandlers[n]=[];return!0}return!1},getEventHandlerCount:function(n){return this._eventHandlers[n]!=undefined?this._eventHandlers[n].length:-1},fireEvent:function(n){if(n.type==undefined)return!1;var t=n.type;if(t&&this._eventHandlers[t]){var i=this._eventHandlers[t];for(var r in i)i[r](n);return!0}else return!1}};OSF.DDA.OMFactory=OSF.DDA.OMFactory||{};OSF.DDA.OMFactory.manufactureEventArgs=function(n,t,i){var u=this,r;switch(n){case Microsoft.Office.WebExtension.EventType.DocumentSelectionChanged:r=new OSF.DDA.DocumentSelectionChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.BindingSelectionChanged:r=new OSF.DDA.BindingSelectionChangedEventArgs(u.manufactureBinding(i,t.document),i[OSF.DDA.PropertyDescriptors.Subset]);break;case Microsoft.Office.WebExtension.EventType.BindingDataChanged:r=new OSF.DDA.BindingDataChangedEventArgs(u.manufactureBinding(i,t.document));break;case Microsoft.Office.WebExtension.EventType.SettingsChanged:r=new OSF.DDA.SettingsChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.ActiveViewChanged:r=new OSF.DDA.ActiveViewChangedEventArgs(i);break;case Microsoft.Office.WebExtension.EventType.OfficeThemeChanged:r=new OSF.DDA.Theming.OfficeThemeChangedEventArgs(i);break;case Microsoft.Office.WebExtension.EventType.DocumentThemeChanged:r=new OSF.DDA.Theming.DocumentThemeChangedEventArgs(i);break;case Microsoft.Office.WebExtension.EventType.AppCommandInvoked:r=OSF.DDA.AppCommand.AppCommandInvokedEventArgs.create(i);break;case Microsoft.Office.WebExtension.EventType.DataNodeInserted:r=new OSF.DDA.NodeInsertedEventArgs(u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.NewNode]),i[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.DataNodeReplaced:r=new OSF.DDA.NodeReplacedEventArgs(u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.OldNode]),u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.NewNode]),i[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.DataNodeDeleted:r=new OSF.DDA.NodeDeletedEventArgs(u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.OldNode]),u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.NextSiblingNode]),i[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.TaskSelectionChanged:r=new OSF.DDA.TaskSelectionChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.ResourceSelectionChanged:r=new OSF.DDA.ResourceSelectionChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.ViewSelectionChanged:r=new OSF.DDA.ViewSelectionChangedEventArgs(t);break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,n));}return r};OSF.DDA.AsyncMethodNames.addNames({AddHandlerAsync:"addHandlerAsync",RemoveHandlerAsync:"removeHandlerAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AddHandlerAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.EventType,"enum":Microsoft.Office.WebExtension.EventType,verify:function(n,t,i){return i.supportsEvent(n)}},{name:Microsoft.Office.WebExtension.Parameters.Handler,types:["function"]}],supportedOptions:[],privateStateCallbacks:[]});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.RemoveHandlerAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.EventType,"enum":Microsoft.Office.WebExtension.EventType,verify:function(n,t,i){return i.supportsEvent(n)}}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.Handler,value:{types:["function","object"],defaultValue:null}}],privateStateCallbacks:[]});var OfficeExt;(function(n){(function(t){var r=function(){var f="object",e="string",u=null;function r(){var t=this,n=t;t._pseudoDocument=u;t._eventDispatch=u;t._processAppCommandInvocation=function(t){var i=n._verifyManifestCallback(t.callbackName);if(i.errorCode!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){n._invokeAppCommandCompletedMethod(t.appCommandId,i.errorCode,"");return}var r=n._constructEventObjectForCallback(t);r?window.setTimeout(function(){i.callback(r)},0):n._invokeAppCommandCompletedMethod(t.appCommandId,OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError,"")}}r.initializeOsfDda=function(){OSF.DDA.AsyncMethodNames.addNames({AppCommandInvocationCompletedAsync:"appCommandInvocationCompletedAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AppCommandInvocationCompletedAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Id,types:[e]},{name:Microsoft.Office.WebExtension.Parameters.Status,types:["number"]},{name:Microsoft.Office.WebExtension.Parameters.Data,types:[e]}]});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{AppCommandInvokedEvent:"AppCommandInvokedEvent"});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{AppCommandInvoked:"appCommandInvoked"});OSF.OUtil.setNamespace("AppCommand",OSF.DDA);OSF.DDA.AppCommand.AppCommandInvokedEventArgs=n.AppCommand.AppCommandInvokedEventArgs};r.prototype.initializeAndChangeOnce=function(n){var i=this;t.registerDdaFacade();i._pseudoDocument={};OSF.DDA.DispIdHost.addAsyncMethods(i._pseudoDocument,[OSF.DDA.AsyncMethodNames.AppCommandInvocationCompletedAsync]);i._eventDispatch=new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.AppCommandInvoked]);var r=function(t){n&&(t.status=="succeeded"?n(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess):n(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError))};OSF.DDA.DispIdHost.addEventSupport(i._pseudoDocument,i._eventDispatch);i._pseudoDocument.addHandlerAsync(Microsoft.Office.WebExtension.EventType.AppCommandInvoked,i._processAppCommandInvocation,r)};r.prototype._verifyManifestCallback=function(n){var e={callback:u,errorCode:OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidCallback};n=n.trim();try{for(var t=n.split("."),r=window,i=0;i<t.length-1;i++)if(r[t[i]]&&typeof r[t[i]]==f)r=r[t[i]];else return e;var o=r[t[t.length-1]];if(typeof o!="function")return e}catch(s){return e}return{callback:o,errorCode:OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess}};r.prototype._invokeAppCommandCompletedMethod=function(n,t,i){this._pseudoDocument.appCommandInvocationCompletedAsync(n,t,i)};r.prototype._constructEventObjectForCallback=function(n){var f=this,t=new i;try{var r=JSON.parse(n.eventObjStr);this._translateEventObjectInternal(r,t);Object.defineProperty(t,"completed",{value:function(){var i=JSON.stringify(t);f._invokeAppCommandCompletedMethod(n.appCommandId,OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess,i)},enumerable:!0})}catch(e){t=u}return t};r.prototype._translateEventObjectInternal=function(n,t){for(var i in n)if(n.hasOwnProperty(i)){var r=n[i];if(typeof r==f&&r!=u){OSF.OUtil.defineEnumerableProperty(t,i,{value:{}});this._translateEventObjectInternal(r,t[i])}else Object.defineProperty(t,i,{value:r,enumerable:!0,writable:!0})}};r.prototype._constructObjectByTemplate=function(n,t){var r={};if(!n||!t)return r;for(var i in n)if(n.hasOwnProperty(i)){r[i]=u;if(t[i]!=u){var h=n[i],s=t[i],o=typeof s;typeof h==f&&h!=u?r[i]=this._constructObjectByTemplate(h,s):(o=="number"||o==e||o=="boolean")&&(r[i]=s)}}return r};r.instance=function(){r._instance==u&&(r._instance=new r);return r._instance};r._instance=u;return r}();t.AppCommandManager=r;var u=function(){function n(n,t,i){var r=this;r.type=Microsoft.Office.WebExtension.EventType.AppCommandInvoked;r.appCommandId=n;r.callbackName=t;r.eventObjStr=i}n.create=function(i){return new n(i[t.AppCommandInvokedEventEnums.AppCommandId],i[t.AppCommandInvokedEventEnums.CallbackName],i[t.AppCommandInvokedEventEnums.EventObjStr])};return n}();t.AppCommandInvokedEventArgs=u;var i=function(){function n(){}return n}();t.AppCommandCallbackEventArgs=i;t.AppCommandInvokedEventEnums={AppCommandId:"appCommandId",CallbackName:"callbackName",EventObjStr:"eventObjStr"}})(n.AppCommand||(n.AppCommand={}));var t=n.AppCommand})(OfficeExt||(OfficeExt={}));OfficeExt.AppCommand.AppCommandManager.initializeOsfDda();var OSFLog;(function(n){var r="ResponseTime",i="SessionId",t=!0,u=function(){function n(n){this._table=n;this._fields={}}Object.defineProperty(n.prototype,"Fields",{get:function(){return this._fields},enumerable:t,configurable:t});Object.defineProperty(n.prototype,"Table",{get:function(){return this._table},enumerable:t,configurable:t});n.prototype.SerializeFields=function(){};n.prototype.SetSerializedField=function(n,t){typeof t!="undefined"&&t!==null&&(this._serializedFields[n]=t.toString())};n.prototype.SerializeRow=function(){var n=this;n._serializedFields={};n.SetSerializedField("Table",n._table);n.SerializeFields();return JSON.stringify(n._serializedFields)};return n}();n.BaseUsageData=u;var o=function(n){var v="AppSizeHeight",l="AppSizeWidth",c="ClientId",a="HostVersion",y="Host",o="UserId",h="Browser",f="AssetId",u="AppURL",e="AppId",s="CorrelationId";__extends(r,n);function r(){n.call(this,"AppActivated")}Object.defineProperty(r.prototype,s,{get:function(){return this.Fields[s]},set:function(n){this.Fields[s]=n},enumerable:t,configurable:t});Object.defineProperty(r.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t});Object.defineProperty(r.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t});Object.defineProperty(r.prototype,u,{get:function(){return this.Fields[u]},set:function(n){this.Fields[u]=n},enumerable:t,configurable:t});Object.defineProperty(r.prototype,f,{get:function(){return this.Fields[f]},set:function(n){this.Fields[f]=n},enumerable:t,configurable:t});Object.defineProperty(r.prototype,h,{get:function(){return this.Fields[h]},set:function(n){this.Fields[h]=n},enumerable:t,configurable:t});Object.defineProperty(r.prototype,o,{get:function(){return this.Fields[o]},set:function(n){this.Fields[o]=n},enumerable:t,configurable:t});Object.defineProperty(r.prototype,y,{get:function(){return this.Fields[y]},set:function(n){this.Fields[y]=n},enumerable:t,configurable:t});Object.defineProperty(r.prototype,a,{get:function(){return this.Fields[a]},set:function(n){this.Fields[a]=n},enumerable:t,configurable:t});Object.defineProperty(r.prototype,c,{get:function(){return this.Fields[c]},set:function(n){this.Fields[c]=n},enumerable:t,configurable:t});Object.defineProperty(r.prototype,l,{get:function(){return this.Fields[l]},set:function(n){this.Fields[l]=n},enumerable:t,configurable:t});Object.defineProperty(r.prototype,v,{get:function(){return this.Fields[v]},set:function(n){this.Fields[v]=n},enumerable:t,configurable:t});r.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(s,n.CorrelationId);n.SetSerializedField(i,n.SessionId);n.SetSerializedField(e,n.AppId);n.SetSerializedField(u,n.AppURL);n.SetSerializedField(f,n.AssetId);n.SetSerializedField(h,n.Browser);n.SetSerializedField(o,n.UserId);n.SetSerializedField(y,n.Host);n.SetSerializedField(a,n.HostVersion);n.SetSerializedField(c,n.ClientId);n.SetSerializedField(l,n.AppSizeWidth);n.SetSerializedField(v,n.AppSizeHeight)};return r}(u);n.AppActivatedUsageData=o;var s=function(n){var f="StartTime",e="ScriptId";__extends(u,n);function u(){n.call(this,"ScriptLoad")}Object.defineProperty(u.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,f,{get:function(){return this.Fields[f]},set:function(n){this.Fields[f]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,r,{get:function(){return this.Fields[r]},set:function(n){this.Fields[r]=n},enumerable:t,configurable:t});u.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(i,n.SessionId);n.SetSerializedField(e,n.ScriptId);n.SetSerializedField(f,n.StartTime);n.SetSerializedField(r,n.ResponseTime)};return u}(u);n.ScriptLoadUsageData=s;var f=function(n){var s="CloseMethod",o="OpenTime",f="AppSizeFinalHeight",e="AppSizeFinalWidth",u="FocusTime";__extends(r,n);function r(){n.call(this,"AppClosed")}Object.defineProperty(r.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t});Object.defineProperty(r.prototype,u,{get:function(){return this.Fields[u]},set:function(n){this.Fields[u]=n},enumerable:t,configurable:t});Object.defineProperty(r.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t});Object.defineProperty(r.prototype,f,{get:function(){return this.Fields[f]},set:function(n){this.Fields[f]=n},enumerable:t,configurable:t});Object.defineProperty(r.prototype,o,{get:function(){return this.Fields[o]},set:function(n){this.Fields[o]=n},enumerable:t,configurable:t});Object.defineProperty(r.prototype,s,{get:function(){return this.Fields[s]},set:function(n){this.Fields[s]=n},enumerable:t,configurable:t});r.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(i,n.SessionId);n.SetSerializedField(u,n.FocusTime);n.SetSerializedField(e,n.AppSizeFinalWidth);n.SetSerializedField(f,n.AppSizeFinalHeight);n.SetSerializedField(o,n.OpenTime);n.SetSerializedField(s,n.CloseMethod)};return r}(u);n.AppClosedUsageData=f;var e=function(n){var o="ErrorType",e="Parameters",s="APIID",f="APIType";__extends(u,n);function u(){n.call(this,"APIUsage")}Object.defineProperty(u.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,f,{get:function(){return this.Fields[f]},set:function(n){this.Fields[f]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,s,{get:function(){return this.Fields[s]},set:function(n){this.Fields[s]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,r,{get:function(){return this.Fields[r]},set:function(n){this.Fields[r]=n},enumerable:t,configurable:t});Object.defineProperty(u.prototype,o,{get:function(){return this.Fields[o]},set:function(n){this.Fields[o]=n},enumerable:t,configurable:t});u.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(i,n.SessionId);n.SetSerializedField(f,n.APIType);n.SetSerializedField(s,n.APIID);n.SetSerializedField(e,n.Parameters);n.SetSerializedField(r,n.ResponseTime);n.SetSerializedField(o,n.ErrorType)};return u}(u);n.APIUsageUsageData=e})(OSFLog||(OSFLog={}));var Logger;(function(n){"use strict";(function(n){n[n.info=0]="info";n[n.warning=1]="warning";n[n.error=2]="error"})(n.TraceLevel||(n.TraceLevel={}));var f=n.TraceLevel;(function(n){n[n.none=0]="none";n[n.flush=1]="flush"})(n.SendFlag||(n.SendFlag={}));var e=n.SendFlag;function u(){OSF.Logger&&OSF.Logger.ulsEndpoint&&OSF.Logger.ulsEndpoint.loadProxyFrame()}n.allowUploadingData=u;function t(n,t,i){if(OSF.Logger&&OSF.Logger.ulsEndpoint){var u={traceLevel:n,message:t,flag:i,internalLog:!0},r=JSON.stringify(u);OSF.Logger.ulsEndpoint.writeLog(r)}}n.sendLog=t;function i(){try{return new r}catch(n){return null}}var r=function(){function n(){var n=this,t=n;n.proxyFrame=null;n.telemetryEndPoint="https://telemetryservice.firstpartyapps.oaspapps.com/telemetryservice/telemetryproxy.html";n.buffer=[];n.proxyFrameReady=!1;OSF.OUtil.addEventListener(window,"message",function(n){return t.tellProxyFrameReady(n)});setTimeout(function(){t.loadProxyFrame()},3e3)}n.prototype.writeLog=function(n){var t=this;t.proxyFrameReady===!0?t.proxyFrame.contentWindow.postMessage(n,"*"):t.buffer.length<128&&t.buffer.push(n)};n.prototype.loadProxyFrame=function(){var n=this;if(n.proxyFrame==null){n.proxyFrame=document.createElement("iframe");n.proxyFrame.setAttribute("style","display:none");n.proxyFrame.setAttribute("src",n.telemetryEndPoint);document.head.appendChild(n.proxyFrame)}};n.prototype.tellProxyFrameReady=function(n){var t=this,f=t;if(n.data==="ProxyFrameReadyToLog"){t.proxyFrameReady=!0;for(var i=0;i<t.buffer.length;i++)t.writeLog(t.buffer[i]);t.buffer.length=0;OSF.OUtil.removeEventListener(window,"message",function(n){return f.tellProxyFrameReady(n)})}else if(n.data==="ProxyFrameReadyToInit"){var u={appName:"Office APPs",sessionId:OSF.OUtil.Guid.generateNewGuid()},r=JSON.stringify(u);t.proxyFrame.contentWindow.postMessage(r,"*")}};return n}();OSF.Logger||(OSF.Logger=n);n.ulsEndpoint=i()})(Logger||(Logger={}));var OSFAppTelemetry;(function(n){var i=null;"use strict";var t,u=OSF.OUtil.Guid.generateNewGuid(),y=function(){function n(){}return n}(),r=function(){function n(n,t){this.name=n;this.handler=t}return n}(),e=function(){function n(){this.clientIDKey="Office API client";this.logIdSetKey="Office App Log Id Set"}n.prototype.getClientId=function(){var t=this,n=t.getValue(t.clientIDKey);if(!n||n.length<=0||n.length>40){n=OSF.OUtil.Guid.generateNewGuid();t.setValue(t.clientIDKey,n)}return n};n.prototype.saveLog=function(n,t){var r=this,i=r.getValue(r.logIdSetKey);i=(i&&i.length>0?i+";":"")+n;r.setValue(r.logIdSetKey,i);r.setValue(n,t)};n.prototype.enumerateLog=function(n,t){var i=this,f=i.getValue(i.logIdSetKey);if(f){var e=f.split(";");for(var o in e){var r=e[o],u=i.getValue(r);if(u){n&&n(r,u);t&&i.remove(r)}}t&&i.remove(i.logIdSetKey)}};n.prototype.getValue=function(n){var i=OSF.OUtil.getLocalStorage(),t="";i&&(t=i.getItem(n));return t};n.prototype.setValue=function(n,t){var i=OSF.OUtil.getLocalStorage();i&&i.setItem(n,t)};n.prototype.remove=function(n){var t=OSF.OUtil.getLocalStorage();if(t)try{t.removeItem(n)}catch(i){}};return n}(),f=function(){function n(){}n.prototype.LogData=function(n){OSF.Logger&&OSF.Logger.sendLog(OSF.Logger.TraceLevel.info,n.SerializeRow(),OSF.Logger.SendFlag.none)};n.prototype.LogRawData=function(n){OSF.Logger&&OSF.Logger.sendLog(OSF.Logger.TraceLevel.info,n,OSF.Logger.SendFlag.none)};return n}();function v(u){if(OSF.Logger&&!t){t=new y;t.hostVersion=u.get_appVersion();t.appId=u.get_id();t.host=u.get_appName();t.browser=window.navigator.userAgent;t.correlationId=u.get_correlationId();t.clientId=(new e).getClientId();var f=location.href.indexOf("?");t.appURL=f==-1?location.href:location.href.substring(0,f);(function(n,t){var f,u,r;t.assetId="";t.userId="";try{f=decodeURIComponent(n);u=new DOMParser;r=u.parseFromString(f,"text/xml");t.userId=r.getElementsByTagName("t")[0].attributes.getNamedItem("cid").nodeValue;t.assetId=r.getElementsByTagName("t")[0].attributes.getNamedItem("aid").nodeValue}catch(e){}finally{f=i;r=i;u=i}})(u.get_eToken(),t);(function(){var c=new Date,u=i,o=0,h=!1,f=function(){if(document.hasFocus())u==i&&(u=new Date);else if(u){o+=Math.abs(+new Date-u.getTime());u=i}},t=[];t.push(new r("focus",f));t.push(new r("blur",f));t.push(new r("focusout",f));t.push(new r("focusin",f));var s=function(){for(var r=0;r<t.length;r++)OSF.OUtil.removeEventListener(window,t[r].name,t[r].handler);t.length=0;if(!h){if(document.hasFocus()&&u){o+=Math.abs(+new Date-u.getTime());u=i}n.onAppClosed(Math.abs(+new Date-c.getTime()),o);h=!0}};t.push(new r("beforeunload",s));t.push(new r("unload",s));for(var e=0;e<t.length;e++)OSF.OUtil.addEventListener(window,t[e].name,t[e].handler);f()})();n.onAppActivated()}}n.initialize=v;function p(){if(t){(new e).enumerateLog(function(n,t){return(new f).LogRawData(t)},!0);var n=new OSFLog.AppActivatedUsageData;n.SessionId=u;n.AppId=t.appId;n.AssetId=t.assetId;n.AppURL=t.appURL;n.UserId=t.userId;n.ClientId=t.clientId;n.Browser=t.browser;n.Host=t.host;n.HostVersion=t.hostVersion;n.CorrelationId=t.correlationId;n.AppSizeWidth=window.innerWidth;n.AppSizeHeight=window.innerHeight;(new f).LogData(n);setTimeout(function(){OSF.Logger&&OSF.Logger.allowUploadingData()},100)}}n.onAppActivated=p;function b(n,t,i){var r=new OSFLog.ScriptLoadUsageData;r.SessionId=u;r.ScriptId=n;r.StartTime=t;r.ResponseTime=i;(new f).LogData(r)}n.onScriptDone=b;function w(n,i,r,e,o){if(t){var s=new OSFLog.APIUsageUsageData;s.SessionId=u;s.APIType=n;s.APIID=i;s.Parameters=r;s.ResponseTime=e;s.ErrorType=o;(new f).LogData(s)}}n.onCallDone=w;function a(n,t,r,u){var f=i;if(t)if(typeof t=="number")f=String(t);else if(typeof t=="object")for(var e in t){f!==i?f+=",":f="";typeof t[e]=="number"&&(f+=String(t[e]))}else f="";OSF.AppTelemetry.onCallDone("method",n,f,r,u)}n.onMethodDone=a;function s(n,t){OSF.AppTelemetry.onCallDone("property",-1,n,t)}n.onPropertyDone=s;function o(n,t){OSF.AppTelemetry.onCallDone("event",n,i,0,t)}n.onEventDone=o;function h(n,t,r,u){OSF.AppTelemetry.onCallDone(n?"registerevent":"unregisterevent",t,i,r,u)}n.onRegisterDone=h;function l(n,i){if(t){var r=new OSFLog.AppClosedUsageData;r.SessionId=u;r.FocusTime=i;r.OpenTime=n;r.AppSizeFinalWidth=window.innerWidth;r.AppSizeFinalHeight=window.innerHeight;(new e).saveLog(u,r.SerializeRow())}}n.onAppClosed=l;function c(n){var t=new OSFLog.APIUsageUsageData;t.SessionId=u;t.APIType="method";t.APIID=-1;t.Parameters="onGetAppContextAsyncStart";t.ResponseTime=n;t.ErrorType=i;(new f).LogData(t)}n.onGetAppContextAsyncStart=c;OSF.AppTelemetry=n})(OSFAppTelemetry||(OSFAppTelemetry={}));var OfficeExt;(function(n){(function(t){function i(){if(OSF.DDA.SafeArray){var t=OSF.DDA.SafeArray.Delegate.ParameterMap;t.define({type:OSF.DDA.MethodDispId.dispidAppCommandInvocationCompletedMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.Status,value:1},{name:Microsoft.Office.WebExtension.Parameters.Data,value:2}]});t.define({type:OSF.DDA.EventDispId.dispidAppCommandInvokedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.AppCommandInvokedEvent,value:t.self}],isComplexType:!0});t.define({type:OSF.DDA.EventDescriptors.AppCommandInvokedEvent,fromHost:[{name:n.AppCommand.AppCommandInvokedEventEnums.AppCommandId,value:0},{name:n.AppCommand.AppCommandInvokedEventEnums.CallbackName,value:1},{name:n.AppCommand.AppCommandInvokedEventEnums.EventObjStr,value:2}],isComplexType:!0})}}t.registerDdaFacade=i})(n.AppCommand||(n.AppCommand={}));var t=n.AppCommand})(OfficeExt||(OfficeExt={}));var OfficeJsClient_OutlookWin32;(function(n){function t(){OSF._OfficeAppFactory.setHostFacade(new OSF.DDA.DispIdHost.Facade(OSF.DDA.DispIdHost.getClientDelegateMethods,OSF.DDA.SafeArray.Delegate.ParameterMap));var n=OfficeExt.AppCommand.AppCommandManager.instance();n.initializeAndChangeOnce()}n.prepareRightBeforeWebExtensionInitialize=t})(OfficeJsClient_OutlookWin32||(OfficeJsClient_OutlookWin32={}));OSF.InitializationHelper.prototype.prepareRightBeforeWebExtensionInitialize=function(n){var i=new OSF.DDA.License(n.get_eToken());var t=n.get_appName()==OSF.AppName.OutlookWebApp;if(t){OSF.WebApp._UpdateLinksForHostAndXdmInfo();OSF._OfficeAppFactory.setContext(new OSF.DDA.OutlookContext(n,this._settings,i,n.appOM))}else OSF._OfficeAppFactory.setContext(new OSF.DDA.OutlookContext(n,this._settings,i,n.appOM,OSF.DDA.Theming?OSF.DDA.Theming.getOfficeTheme:null));var r=n.get_reason();Microsoft.Office.WebExtension.initialize(r);t||OfficeJsClient_OutlookWin32.prepareRightBeforeWebExtensionInitialize()};OSF.DDA.SettingsManager={SerializedSettings:"serializedSettings",DateJSONPrefix:"Date(",DataJSONSuffix:")",serializeSettings:function(n){var r={};for(var i in n){var t=n[i];try{t=JSON?JSON.stringify(t,function(n,t){return OSF.OUtil.isDate(this[n])?OSF.DDA.SettingsManager.DateJSONPrefix+this[n].getTime()+OSF.DDA.SettingsManager.DataJSONSuffix:t}):Sys.Serialization.JavaScriptSerializer.serialize(t);r[i]=t}catch(u){}}return r},deserializeSettings:function(n){var r={};n=n||{};for(var i in n){var t=n[i];try{t=JSON?JSON.parse(t,function(n,t){var i;if(typeof t=="string"&&t&&t.length>6&&t.slice(0,5)===OSF.DDA.SettingsManager.DateJSONPrefix&&t.slice(-1)===OSF.DDA.SettingsManager.DataJSONSuffix){i=new Date(parseInt(t.slice(5,-1)));if(i)return i}return t}):Sys.Serialization.JavaScriptSerializer.deserialize(t,!0);r[i]=t}catch(u){}}return r}};OSF.InitializationHelper.prototype.loadAppSpecificScriptAndCreateOM=function(n,t,i){Type.registerNamespace("Microsoft.Office.WebExtension.MailboxEnums");Microsoft.Office.WebExtension.MailboxEnums.EntityType={MeetingSuggestion:"meetingSuggestion",TaskSuggestion:"taskSuggestion",Address:"address",EmailAddress:"emailAddress",Url:"url",PhoneNumber:"phoneNumber",Contact:"contact",FlightReservations:"flightReservations",ParcelDeliveries:"parcelDeliveries"};Microsoft.Office.WebExtension.MailboxEnums.ItemType={Message:"message",Appointment:"appointment"};Microsoft.Office.WebExtension.MailboxEnums.ResponseType={None:"none",Organizer:"organizer",Tentative:"tentative",Accepted:"accepted",Declined:"declined"};Microsoft.Office.WebExtension.MailboxEnums.RecipientType={Other:"other",DistributionList:"distributionList",User:"user",ExternalUser:"externalUser"};Microsoft.Office.WebExtension.MailboxEnums.AttachmentType={File:"file",Item:"item",Cloud:"cloud"};Microsoft.Office.WebExtension.MailboxEnums.BodyType={Text:"text",Html:"html"};Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType={ProgressIndicator:"progressIndicator",InformationalMessage:"informationalMessage",ErrorMessage:"errorMessage"};Microsoft.Office.WebExtension.CoercionType={Text:"text",Html:"html"};Type.registerNamespace("OSF.DDA");OSF.DDA.OutlookAppOm=function(n,t,i){this.$$d_$2r_0=Function.createDelegate(this,this.$2r_0);this.$$d_$3E_0=Function.createDelegate(this,this.$3E_0);this.$$d_windowOpenOverrideHandler=Function.createDelegate(this,this.windowOpenOverrideHandler);this.$$d_$43_0=Function.createDelegate(this,this.$43_0);this.$$d_$41_0=Function.createDelegate(this,this.$41_0);this.$$d_$4W_0=Function.createDelegate(this,this.$4W_0);this.$$d_$4C_0=Function.createDelegate(this,this.$4C_0);this.$$d_$49_0=Function.createDelegate(this,this.$49_0);OSF.DDA.OutlookAppOm.$2=this;this.$W_0=n;this.$18_0=i;var u=this;var r=function(){i&&u.$C_0(1,"GetInitialData",null,u.$$d_$49_0)};this.$1u_0()?r():this.$4e_0(r)};OSF.DDA.OutlookAppOm.$G=function(n){if(!n)throw Error.create(_u.ExtensibilityStrings.l_ElevatedPermissionNeeded_Text);};OSF.DDA.OutlookAppOm.$9=function(n,t,i,r){if(n<t||n>i)throw Error.argumentOutOfRange(r);};OSF.DDA.OutlookAppOm.$47=function(n){var t="";if("htmlBody"in n){OSF.DDA.OutlookAppOm.$4x(n.htmlBody);t=n.htmlBody}return t};OSF.DDA.OutlookAppOm.$2G=function(n){var t=[];if("attachments"in n){t=n.attachments;OSF.DDA.OutlookAppOm.$4v(t)}return t};OSF.DDA.OutlookAppOm.$4I=function(n){var t=[];"options"in n&&(t[0]=n.options);"callback"in n&&(t[t.length]=n.callback);return t};OSF.DDA.OutlookAppOm.$30=function(n){var r=new Array(0);if(Array.isInstanceOfType(n))for(var t=0;t<n.length;t++)if(Object.isInstanceOfType(n[t])){var i=n[t];OSF.DDA.OutlookAppOm.$4t(i);r[t]=OSF.DDA.OutlookAppOm.$2y(i)}else throw Error.argument("attachments");return r};OSF.DDA.OutlookAppOm.$4x=function(n){if(!String.isInstanceOfType(n))throw Error.argument("htmlBody");if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argument("htmlBody");OSF.DDA.OutlookAppOm.$9(n.length,0,OSF.DDA.OutlookAppOm.maxBodyLength,"htmlBody")};OSF.DDA.OutlookAppOm.$4v=function(n){if(!Array.isInstanceOfType(n))throw Error.argument("attachments");};OSF.DDA.OutlookAppOm.$4t=function(n){if(!Object.isInstanceOfType(n))throw Error.argument("attachments");if(!("type"in n)||!("name"in n))throw Error.argument("attachments");if(!("url"in n||"itemId"in n))throw Error.argument("attachments");};OSF.DDA.OutlookAppOm.$2y=function(n){var t=null;if(n.type==="file"){var u=n.url;var f=n.name;OSF.DDA.OutlookAppOm.$4w(u,f);t=OSF.DDA.OutlookAppOm.$32(u,f)}else if(n.type==="item"){var i=n.itemId;var r=n.name;OSF.DDA.OutlookAppOm.$4u(i,r);t=OSF.DDA.OutlookAppOm.$33(i,r)}else throw Error.argument("attachments");return t};OSF.DDA.OutlookAppOm.$32=function(n,t){return["file",t,n]};OSF.DDA.OutlookAppOm.$33=function(n,t){return["item",t,n]};OSF.DDA.OutlookAppOm.$4w=function(n,t){if(!String.isInstanceOfType(n)||!String.isInstanceOfType(t))throw Error.argument("attachments");if(n.length>2048)throw Error.argumentOutOfRange("attachments",n.length,_u.ExtensibilityStrings.l_AttachmentUrlTooLong_Text);OSF.DDA.OutlookAppOm.$2m(t)};OSF.DDA.OutlookAppOm.$4u=function(n,t){if(!String.isInstanceOfType(n)||!String.isInstanceOfType(t))throw Error.argument("attachments");if(n.length>200)throw Error.argumentOutOfRange("attachments",n.length,_u.ExtensibilityStrings.l_AttachmentItemIdTooLong_Text);OSF.DDA.OutlookAppOm.$2m(t)};OSF.DDA.OutlookAppOm.$2m=function(n){if(n.length>255)throw Error.argumentOutOfRange("attachments",n.length,_u.ExtensibilityStrings.l_AttachmentNameTooLong_Text);};OSF.DDA.OutlookAppOm.$T=function(n,t,i){if(Object.getType(n)!==t)throw Error.argumentType(i);};OSF.DDA.OutlookAppOm.$1s=function(n,t,i,r){if(!$h.ScriptHelpers.isNullOrUndefined(n)){OSF.DDA.OutlookAppOm.$T(n,String,r);var u=n;OSF.DDA.OutlookAppOm.$9(u.length,t,i,r)}};OSF.DDA.OutlookAppOm.$2x=function(n,t){var i=null;switch(n){case 1:case 2:case 12:case 3:case 14:case 18:case 26:case 32:case 41:case 34:break;case 4:var r=JSON.stringify(t.customProperties);i=[r];break;case 5:i=[t.body];break;case 8:case 9:i=[t.itemId];break;case 7:i=[OSF.DDA.OutlookAppOm.$1C(t.requiredAttendees),OSF.DDA.OutlookAppOm.$1C(t.optionalAttendees),t.start,t.end,t.location,OSF.DDA.OutlookAppOm.$1C(t.resources),t.subject,t.body];break;case 40:i=[t.extensionId,t.consentState];break;case 11:case 10:i=[t.htmlBody];break;case 31:case 30:i=[t.htmlBody,t.attachments];break;case 23:case 13:case 38:case 29:i=[t.data,t.coercionType];break;case 37:case 28:i=[t.coercionType];break;case 17:i=[t.subject];break;case 15:i=[t.recipientField];break;case 22:case 21:i=[t.recipientField,OSF.DDA.OutlookAppOm.$2v(t.recipientArray)];break;case 19:i=[t.itemId,t.name];break;case 16:i=[t.uri,t.name];break;case 20:i=[t.attachmentIndex];break;case 25:i=[t.TimeProperty,t.time];break;case 24:i=[t.TimeProperty];break;case 27:i=[t.location];break;case 33:case 35:i=[t.key,t.type,t.persistent,t.message,t.icon];break;case 36:i=[t.key];break;default:break}return i};OSF.DDA.OutlookAppOm.$1C=function(n){return n?n.join(";"):null};OSF.DDA.OutlookAppOm.$2v=function(n){if(!n)return null;for(var i=new Array(n.length),t=0;t<n.length;t++)i[t]=[n[t].address,n[t].name];return i};OSF.DDA.OutlookAppOm.$2n=function(n,t){if($h.ScriptHelpers.isNullOrUndefined(n))return null;OSF.DDA.OutlookAppOm.$T(n,Array,t);var r=n;var u=null;var f=!1;OSF.DDA.OutlookAppOm.$9(r.length,0,OSF.DDA.OutlookAppOm.$2b,String.format("{0}.length",t));for(var e=0;e<r.length;e++)if($h.EmailAddressDetails.isInstanceOfType(r[e])){f=!0;break}f&&(u=[]);for(var i=0;i<r.length;i++)if(f){u[i]=$h.EmailAddressDetails.isInstanceOfType(r[i])?r[i].emailAddress:r[i];OSF.DDA.OutlookAppOm.$T(u[i],String,String.format("{0}[{1}]",t,i))}else OSF.DDA.OutlookAppOm.$T(r[i],String,String.format("{0}[{1}]",t,i));return u};OSF.DDA.OutlookAppOm.prototype={$6_0:null,$J_0:null,$1q_0:null,$1I_0:null,$W_0:null,$18_0:null,$V_0:null,get_clientEndPoint:function(){this.$V_0||(this.$V_0=OSF._OfficeAppFactory.getClientEndPoint());return this.$V_0},set_clientEndPoint:function(n){this.$V_0=n;return n},get_initialData:function(){return this.$6_0},get_$17_0:function(){return this.$W_0.get_appName()},initialize:function(n){var t="itemType";this.$6_0=new $h.InitialData(n);1===n[t]?this.$J_0=new $h.Message(this.$6_0):3===n[t]?this.$J_0=new $h.MeetingRequest(this.$6_0):2===n[t]?this.$J_0=new $h.Appointment(this.$6_0):4===n[t]?this.$J_0=new $h.MessageCompose(this.$6_0):5===n[t]&&(this.$J_0=new $h.AppointmentCompose(this.$6_0));this.$1q_0=new $h.UserProfile(this.$6_0);this.$1I_0=new $h.Diagnostics(this.$6_0,this.$W_0.get_appName());this.$4Z_0();$h.InitialData.$1(this,"item",this.$$d_$4C_0);$h.InitialData.$1(this,"userProfile",this.$$d_$4W_0);$h.InitialData.$1(this,"diagnostics",this.$$d_$41_0);$h.InitialData.$1(this,"ewsUrl",this.$$d_$43_0);OSF.DDA.OutlookAppOm.$2.get_$17_0()===64&&this.$6_0.get_$4i_0()&&(window.open=this.$$d_windowOpenOverrideHandler)},windowOpenOverrideHandler:function(n,t,i,r){this.$C_0(0,"LaunchPalUrl",{launchUrl:n},null)},makeEwsRequestAsync:function(n){for(var r=[],i=1;i<arguments.length;++i)r[i-1]=arguments[i];if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");if(n.length>OSF.DDA.OutlookAppOm.$2Z)throw Error.argument("data",_u.ExtensibilityStrings.l_EwsRequestOversized_Text);this.$5_0(3,"makeEwsRequestAsync");var u=$h.CommonParameters.parse(r,!0,!0);var t=new $h.EwsRequest(u.$4_0);var f=this;t.onreadystatechange=function(){4===t.get_$1f_1()&&u.$3_0(t.$P_0)};t.send(n)},recordDataPoint:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");this.$C_0(0,"RecordDataPoint",n,null)},recordTrace:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");this.$C_0(0,"RecordTrace",n,null)},trackCtq:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");this.$C_0(0,"TrackCtq",n,null)},convertToLocalClientTime:function(n){var t=new Date(n.getTime());var i=t.getTimezoneOffset()*-1;if(this.$6_0&&this.$6_0.get_$1l_0()){t.setUTCMinutes(t.getUTCMinutes()-i);i=this.$27_0(t);t.setUTCMinutes(t.getUTCMinutes()+i)}var r=this.$1G_0(t);r.timezoneOffset=i;return r},convertToUtcClientTime:function(n){var t=this.$3D_0(n);if(this.$6_0&&this.$6_0.get_$1l_0()){var i=this.$27_0(t);t.setUTCMinutes(t.getUTCMinutes()-i);i=n.timezoneOffset?n.timezoneOffset:t.getTimezoneOffset()*-1;t.setUTCMinutes(t.getUTCMinutes()+i)}return t},getUserIdentityTokenAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];this.$5_0(1,"getUserIdentityTokenAsync");var t=$h.CommonParameters.parse(i,!0,!0);this.$2V_0(2,"GetUserIdentityToken",t.$3_0,t.$4_0)},getCallbackTokenAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];this.$5_0(1,"getCallbackTokenAsync");var t=$h.CommonParameters.parse(i,!0,!0);this.$2V_0(12,"GetCallbackToken",t.$3_0,t.$4_0)},displayMessageForm:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("itemId");this.$C_0(8,"DisplayExistingMessageForm",{itemId:n},null)},displayAppointmentForm:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("itemId");this.$C_0(9,"DisplayExistingAppointmentForm",{itemId:n},null)},RegisterConsentAsync:function(n){if(n!==2&&n!==1&&n)throw Error.argumentOutOfRange("consentState");var t={};t.consentState=n.toString();t.extensionId=this.GetExtensionId();this.$C_0(40,"RegisterConsentAsync",t,null)},CloseApp:function(){this.$C_0(42,"CloseApp",null,null)},GetIsRead:function(){return this.$6_0.get_$4b_0()},GetEndNodeUrl:function(){return this.$6_0.get_$3H_0()},GetConsentMetadata:function(){return this.$6_0.get_$2u_0()},GetEntryPointUrl:function(){return this.$6_0.get_$3J_0()},GetMarketplaceContentMarket:function(){return this.$6_0.get_$4g_0()},GetMarketplaceAssetId:function(){return this.$6_0.get_$4f_0()},GetExtensionId:function(){return this.$6_0.get_$3L_0()},createAsyncResult:function(n,t,i,r,u){var e={};var f=null;e[OSF.DDA.AsyncResultEnum.Properties.Value]=n;e[OSF.DDA.AsyncResultEnum.Properties.Context]=r;if(0!==t){f={};var o=$h.OutlookErrorManager.getErrorArgs(i);f[OSF.DDA.AsyncResultEnum.ErrorProperties.Name]=o.name;f[OSF.DDA.AsyncResultEnum.ErrorProperties.Message]=u?u:o.message;f[OSF.DDA.AsyncResultEnum.ErrorProperties.Code]=i}return new OSF.DDA.AsyncResult(e,f)},$5_0:function(n,t){if(this.$6_0.$B_0<n)throw Error.create(String.format(_u.ExtensibilityStrings.l_ElevatedPermissionNeededForMethod_Text,t));},$24_0:function(n){this.$25_0(n,!1)},$23_0:function(n){this.$25_0(n,!0)},$25_0:function(n,t){if(String.isInstanceOfType(n))this.$3F_0(n,t);else if(Object.isInstanceOfType(n)&&Object.getTypeName(n)==="Object"){var i=$h.ScriptHelpers.deepClone(n);this.$3G_0(i,t)}else throw Error.argumentType();},$3F_0:function(n,t){$h.ScriptHelpers.isNullOrUndefined(n)||OSF.DDA.OutlookAppOm.$9(n.length,0,OSF.DDA.OutlookAppOm.maxBodyLength,"htmlBody");this.$C_0(t?11:10,t?"DisplayReplyAllForm":"DisplayReplyForm",{htmlBody:n},null)},$3G_0:function(n,t){var u=OSF.DDA.OutlookAppOm.$47(n);var r=OSF.DDA.OutlookAppOm.$2G(n);var i=$h.CommonParameters.parse(OSF.DDA.OutlookAppOm.$4I(n),!1);var f=this;this.$8_0(t?31:30,t?"DisplayReplyAllForm":"DisplayReplyForm",{htmlBody:u,attachments:OSF.DDA.OutlookAppOm.$30(r)},function(n){return n},i.$4_0,i.$3_0)},$8_0:function(n,t,i,r,u,f){var e=this;this.$C_0(n,t,i,function(n,t){if(f){var o=null;if(Object.isInstanceOfType(t)){var i=t;if("error"in i||"data"in i||"errorCode"in i)if(i.error){var s=i.errorCode;o=e.createAsyncResult(null,1,s,u,null)}else{var h=r?r(i.data):i.data;o=e.createAsyncResult(h,0,0,u,null)}}!o&&n&&(o=e.createAsyncResult(null,1,9002,u,null));f(o)}})},$C_0:function(n,t,i,r){if(64===this.$W_0.get_appName())this.get_clientEndPoint().invoke(t,r,i);else if(n){var u=OSF.DDA.OutlookAppOm.$2x(n,i);var f=this;OSF.ClientHostController.execute(n,u,function(n,t){if(r){var f=n.toArray();var u=JSON.parse(f[0]);if(Object.isInstanceOfType(u)){var i=u;if(f.length>1&&f[1]){i.error=!0;i.errorCode=f[1]}else i.error=!1;r(t,i)}else if(Number.isInstanceOfType(u)){var e={};e.error=!0;e.errorCode=u;r(t,e)}else throw Error.notImplemented("Return data type from host must be Dictionary or int");}})}else r&&r(-2,null)},$3D_0:function(n){var t=new Date(n.year,n.month,n.date,n.hours,n.minutes,n.seconds,n.milliseconds?n.milliseconds:0);if(isNaN(t.getTime()))throw Error.format(_u.ExtensibilityStrings.l_InvalidDate_Text);return t},$1G_0:function(n){var t={};t.month=n.getMonth();t.date=n.getDate();t.year=n.getFullYear();t.hours=n.getHours();t.minutes=n.getMinutes();t.seconds=n.getSeconds();t.milliseconds=n.getMilliseconds();return t},$3E_0:function(n){var u=OSF.DDA.OutlookAppOm.$2n(n.requiredAttendees,"requiredAttendees");var r=OSF.DDA.OutlookAppOm.$2n(n.optionalAttendees,"optionalAttendees");OSF.DDA.OutlookAppOm.$1s(n.location,0,OSF.DDA.OutlookAppOm.$2a,"location");OSF.DDA.OutlookAppOm.$1s(n.body,0,OSF.DDA.OutlookAppOm.maxBodyLength,"body");OSF.DDA.OutlookAppOm.$1s(n.subject,0,OSF.DDA.OutlookAppOm.$2c,"subject");if(!$h.ScriptHelpers.isNullOrUndefined(n.start)){OSF.DDA.OutlookAppOm.$T(n.start,Date,"start");var o=n.start;n.start=o.getTime();if(!$h.ScriptHelpers.isNullOrUndefined(n.end)){OSF.DDA.OutlookAppOm.$T(n.end,Date,"end");var i=n.end;if(i<o)throw Error.argumentOutOfRange("end",i,_u.ExtensibilityStrings.l_InvalidEventDates_Text);n.end=i.getTime()}}var t=null;if(u||r){t={};var s=n;for(var f in s){var e={key:f,value:s[f]};t[e.key]=e.value}u&&(t.requiredAttendees=u);r&&(t.optionalAttendees=r)}this.$C_0(7,"DisplayNewAppointmentForm",t||n,null)},$4Z_0:function(){var n=this;$h.Item.isInstanceOfType(this.$J_0)&&(n.displayNewAppointmentForm=this.$$d_$3E_0)},$49_0:function(n,t){if(!n){this.initialize(t);this.displayName="mailbox";window.setTimeout(this.$$d_$2r_0,0)}},$2r_0:function(){this.$18_0()},$2V_0:function(n,t,i,r){if($h.ScriptHelpers.isNullOrUndefined(i))throw Error.argumentNull("callback");var u=this;this.$C_0(n,t,null,function(n,t){var e;if(n)e=u.createAsyncResult(null,1,9017,r,String.format(_u.ExtensibilityStrings.l_InternalProtocolError_Text,n));else{var f=t;e=f.wasSuccessful?u.createAsyncResult(f.token,0,0,r,null):u.createAsyncResult(null,1,f.errorCode,r,f.errorMessage)}i(e)})},$4C_0:function(){return this.$J_0},$4W_0:function(){OSF.DDA.OutlookAppOm.$G(this.$6_0.$B_0);return this.$1q_0},$41_0:function(){return this.$1I_0},$43_0:function(){OSF.DDA.OutlookAppOm.$G(this.$6_0.$B_0);return this.$6_0.get_$3K_0()},$27_0:function(n){for(var r=this.$6_0.get_$1l_0(),i=0;i<r.length;i++){var t=r[i];var f=parseInt(t.start);var u=parseInt(t.end);if(n.getTime()-f>=0&&n.getTime()-u<0)return parseInt(t.offset)}throw Error.format(_u.ExtensibilityStrings.l_InvalidDate_Text);},$1u_0:function(){var n=!1;try{n=!$h.ScriptHelpers.isNullOrUndefined(_u.ExtensibilityStrings.l_EwsRequestOversized_Text)}catch(t){}return n},$4e_0:function(n){for(var s=null,l="",a=document.getElementsByTagName("script"),o=a.length-1;o>=0;o--){var i=null;var v=a[o].attributes;if(v){var p=v.getNamedItem("src");p&&(i=p.value);if(i){var y=!1;i=i.toLowerCase();var f=i.indexOf("office_strings.js");if(f<0){f=i.indexOf("office_strings.debug.js");y=!0}if(f>0&&f<i.length){s=i.replace(y?"office_strings.debug.js":"office_strings.js","outlook_strings.js");var r=i.substring(0,f);var u=r.lastIndexOf("/",r.length-2);u===-1&&(u=r.lastIndexOf("\\",r.length-2));u!==-1&&r.length>u+1&&(l=r.substring(0,u+1));break}}}}if(s){var h=document.getElementsByTagName("head")[0];var t=null;var b=this;var e=function(){if(n&&(!t.readyState||t.readyState&&(t.readyState==="loaded"||t.readyState==="complete"))){t.onload=null;t.onreadystatechange=null;n()}};var c=this;var w=function(){if(!c.$1u_0()){var n=l+"en-us/"+"outlook_strings.js";t.onload=null;t.onreadystatechange=null;t=c.$21_0(n);t.onload=e;t.onreadystatechange=e;h.appendChild(t)}};t=this.$21_0(s);t.onload=e;t.onreadystatechange=e;window.setTimeout(w,2e3);h.appendChild(t)}},$21_0:function(n){var t=document.createElement("script");t.type="text/javascript";t.src=n;return t}};OSF.DDA.Settings=function(n){this.$v_0=n};OSF.DDA.Settings.$2w=function(n){if(!n)return{};if(OSF.DDA.OutlookAppOm.$2.get_$17_0()===8){var t=n.SettingsKey;if(t)return OSF.DDA.SettingsManager.deserializeSettings(t)}return n};OSF.DDA.Settings.prototype={$v_0:null,$y_0:null,get_$Q_0:function(){if(!this.$y_0){this.$y_0=OSF.DDA.Settings.$2w(this.$v_0);this.$v_0=null}return this.$y_0},get:function(n){return this.get_$Q_0()[n]},set:function(n,t){this.get_$Q_0()[n]=t},remove:function(n){delete this.get_$Q_0()[n]},saveAsync:function(){for(var i=[],t=0;t<arguments.length;++t)i[t]=arguments[t];var n=$h.CommonParameters.parse(i,!1);if(JSON.stringify(OSF.DDA.SettingsManager.serializeSettings(this.get_$Q_0())).length>32768){var r=OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,1,9019,n.$4_0,"");var u=this;window.setTimeout(function(){n.$3_0(r)},0);return}OSF.DDA.OutlookAppOm.$2.get_$17_0()===64?this.$4p_0(n.$3_0,n.$4_0):this.$4o_0(n.$3_0,n.$4_0)},$4o_0:function(n,t){var r=null;try{var f=OSF.DDA.SettingsManager.serializeSettings(this.get_$Q_0());var e=JSON.stringify(f);var u={SettingsKey:e};OSF.DDA.ClientSettingsManager.write(u)}catch(o){r=o}if(n){var i;i=r?OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,1,9019,t,r.message):OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,0,0,t,null);n(i)}},$4p_0:function(n,t){var i=OSF.DDA.SettingsManager.serializeSettings(this.get_$Q_0());var r=this;OSF._OfficeAppFactory.getClientEndPoint().invoke("saveSettingsAsync",function(i,r){if(n){var u;if(i)u=OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,1,9017,t,String.format(_u.ExtensibilityStrings.l_InternalProtocolError_Text,i));else{var f=r;u=f.error?OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,1,9019,t,f.errorMessage):OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,0,0,t,null)}n(u)}},[i])}};Type.registerNamespace("$h");Type.registerNamespace("Office.cast");$h.Appointment=function(n){this.$$d_$4J_2=Function.createDelegate(this,this.$4J_2);this.$$d_$2O_2=Function.createDelegate(this,this.$2O_2);this.$$d_$o_2=Function.createDelegate(this,this.$o_2);this.$$d_$4P_2=Function.createDelegate(this,this.$4P_2);this.$$d_$1Z_2=Function.createDelegate(this,this.$1Z_2);this.$$d_$1W_2=Function.createDelegate(this,this.$1W_2);this.$$d_$n_2=Function.createDelegate(this,this.$n_2);this.$$d_$1U_2=Function.createDelegate(this,this.$1U_2);this.$$d_$1a_2=Function.createDelegate(this,this.$1a_2);$h.Appointment.initializeBase(this,[n]);$h.InitialData.$1(this,"start",this.$$d_$1a_2);$h.InitialData.$1(this,"end",this.$$d_$1U_2);$h.InitialData.$1(this,"location",this.$$d_$n_2);$h.InitialData.$1(this,"optionalAttendees",this.$$d_$1W_2);$h.InitialData.$1(this,"requiredAttendees",this.$$d_$1Z_2);$h.InitialData.$1(this,"resources",this.$$d_$4P_2);$h.InitialData.$1(this,"subject",this.$$d_$o_2);$h.InitialData.$1(this,"normalizedSubject",this.$$d_$2O_2);$h.InitialData.$1(this,"organizer",this.$$d_$4J_2)};$h.Appointment.prototype={getEntities:function(){return this.$0_0.$m_0()},getEntitiesByType:function(n){return this.$0_0.$2L_0(n)},getRegExMatches:function(){OSF.DDA.OutlookAppOm.$2.$5_0(1,"getRegExMatches");return this.$0_0.$1Y_0()},getFilteredEntitiesByName:function(n){return this.$0_0.$1V_0(n)},getRegExMatchesByName:function(n){OSF.DDA.OutlookAppOm.$2.$5_0(1,"getRegExMatchesByName");return this.$0_0.$2S_0(n)},displayReplyForm:function(n){OSF.DDA.OutlookAppOm.$2.$24_0(n)},displayReplyAllForm:function(n){OSF.DDA.OutlookAppOm.$2.$23_0(n)},getItemType:function(){return Microsoft.Office.WebExtension.MailboxEnums.ItemType.Appointment},$1a_2:function(){return this.$0_0.get_$2i_0()},$1U_2:function(){return this.$0_0.get_$26_0()},$n_2:function(){return this.$0_0.get_$2X_0()},$1W_2:function(){return this.$0_0.get_$1A_0()},$1Z_2:function(){return this.$0_0.get_$1m_0()},$4P_2:function(){return this.$0_0.get_$4n_0()},$o_2:function(){return this.$0_0.get_$2l_0()},$2O_2:function(){return this.$0_0.get_$2d_0()},$4J_2:function(){return this.$0_0.get_$4h_0()}};$h.AppointmentCompose=function(n){this.$$d_$n_2=Function.createDelegate(this,this.$n_2);this.$$d_$1U_2=Function.createDelegate(this,this.$1U_2);this.$$d_$1a_2=Function.createDelegate(this,this.$1a_2);this.$$d_$1W_2=Function.createDelegate(this,this.$1W_2);this.$$d_$1Z_2=Function.createDelegate(this,this.$1Z_2);$h.AppointmentCompose.initializeBase(this,[n]);$h.InitialData.$1(this,"requiredAttendees",this.$$d_$1Z_2);$h.InitialData.$1(this,"optionalAttendees",this.$$d_$1W_2);$h.InitialData.$1(this,"start",this.$$d_$1a_2);$h.InitialData.$1(this,"end",this.$$d_$1U_2);$h.InitialData.$1(this,"location",this.$$d_$n_2)};$h.AppointmentCompose.prototype={$w_2:null,$t_2:null,$z_2:null,$j_2:null,$p_2:null,getItemType:function(){return Microsoft.Office.WebExtension.MailboxEnums.ItemType.Appointment},$1Z_2:function(){this.$0_0.$A_0();this.$w_2||(this.$w_2=new $h.ComposeRecipient(0,"requiredAttendees"));return this.$w_2},$1W_2:function(){this.$0_0.$A_0();this.$t_2||(this.$t_2=new $h.ComposeRecipient(1,"optionalAttendees"));return this.$t_2},$1a_2:function(){this.$0_0.$A_0();this.$z_2||(this.$z_2=new $h.ComposeTime(1));return this.$z_2},$1U_2:function(){this.$0_0.$A_0();this.$j_2||(this.$j_2=new $h.ComposeTime(2));return this.$j_2},$n_2:function(){this.$0_0.$A_0();this.$p_2||(this.$p_2=new $h.ComposeLocation);return this.$p_2}};$h.AttachmentConstants=function(){};$h.AttachmentDetails=function(n){this.$$d_$4B_0=Function.createDelegate(this,this.$4B_0);this.$$d_$3s_0=Function.createDelegate(this,this.$3s_0);this.$$d_$4R_0=Function.createDelegate(this,this.$4R_0);this.$$d_$3y_0=Function.createDelegate(this,this.$3y_0);this.$$d_$4G_0=Function.createDelegate(this,this.$4G_0);this.$$d_$48_0=Function.createDelegate(this,this.$48_0);this.$0_0=n;$h.InitialData.$1(this,"id",this.$$d_$48_0);$h.InitialData.$1(this,"name",this.$$d_$4G_0);$h.InitialData.$1(this,"contentType",this.$$d_$3y_0);$h.InitialData.$1(this,"size",this.$$d_$4R_0);$h.InitialData.$1(this,"attachmentType",this.$$d_$3s_0);$h.InitialData.$1(this,"isInline",this.$$d_$4B_0)};$h.AttachmentDetails.prototype={$0_0:null,$48_0:function(){return this.$0_0.id},$4G_0:function(){return this.$0_0.name},$3y_0:function(){return this.$0_0.contentType},$4R_0:function(){return this.$0_0.size},$3s_0:function(){var n=this.$0_0.attachmentType;return n<$h.AttachmentDetails.$19.length?$h.AttachmentDetails.$19[n]:Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.File},$4B_0:function(){return this.$0_0.isInline}};$h.Body=function(){};$h.Body.$1n=function(n,t){t.val=undefined;if(n===Microsoft.Office.WebExtension.CoercionType.Html)t.val=3;else if(n===Microsoft.Office.WebExtension.CoercionType.Text)t.val=0;else return!1;return!0};$h.Body.prototype={getAsync:function(n){for(var f=[],t=1;t<arguments.length;++t)f[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(1,"body.getAsync");var e=$h.CommonParameters.parse(f,!0);var i;var u,r;if(!(r=$h.Body.$1n(n,u={val:i}),i=u.val,r))throw Error.argument("coercionType");var o={coercionType:i};OSF.DDA.OutlookAppOm.$2.$8_0(37,"GetBodyAsync",o,null,e.$4_0,e.$3_0)}};$h.ComposeBody=function(){$h.ComposeBody.initializeBase(this)};$h.ComposeBody.$h=function(n,t){var r={data:n};if(t.$S_0&&!$h.ScriptHelpers.isNull(t.$S_0.coercionType)){var i;var f,u;if(!(u=$h.Body.$1n(t.$S_0.coercionType,f={val:i}),i=f.val,u)){t.$3_0&&t.$3_0(OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,1,1e3,t.$4_0,null));return null}r.coercionType=i}else r.coercionType=0;return r};$h.ComposeBody.prototype={getTypeAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];OSF.DDA.OutlookAppOm.$2.$5_0(1,"body.getTypeAsync");var t=$h.CommonParameters.parse(i,!0);OSF.DDA.OutlookAppOm.$2.$8_0(14,"GetBodyTypeAsync",null,null,t.$4_0,t.$3_0)},setSelectedDataAsync:function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(2,"body.setSelectedDataAsync");var i=$h.CommonParameters.parse(u,!1);if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);OSF.DDA.OutlookAppOm.$9(n.length,0,1e6,"data");var r=$h.ComposeBody.$h(n,i);r&&OSF.DDA.OutlookAppOm.$2.$8_0(13,"BodySetSelectedDataAsync",r,null,i.$4_0,i.$3_0)},prependAsync:function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(2,"body.prependAsync");var i=$h.CommonParameters.parse(u,!1);if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);OSF.DDA.OutlookAppOm.$9(n.length,0,1e6,"data");var r=$h.ComposeBody.$h(n,i);r&&OSF.DDA.OutlookAppOm.$2.$8_0(23,"BodyPrependAsync",r,null,i.$4_0,i.$3_0)},setAsync:function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(2,"body.setAsync");var i=$h.CommonParameters.parse(u,!1);if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);OSF.DDA.OutlookAppOm.$9(n.length,0,1e6,"data");var r=$h.ComposeBody.$h(n,i);r&&OSF.DDA.OutlookAppOm.$2.$8_0(38,"SetBodyAsync",r,null,i.$4_0,i.$3_0)}};$h.ComposeItem=function(n){this.$$d_$2H_1=Function.createDelegate(this,this.$2H_1);this.$$d_$o_1=Function.createDelegate(this,this.$o_1);$h.ComposeItem.initializeBase(this,[n]);$h.InitialData.$1(this,"subject",this.$$d_$o_1);$h.InitialData.$1(this,"body",this.$$d_$2H_1)};$h.ComposeItem.prototype={$10_1:null,$H_1:null,addFileAttachmentAsync:function(n,t){for(var u=[],i=2;i<arguments.length;++i)u[i-2]=arguments[i];OSF.DDA.OutlookAppOm.$2.$5_0(2,"addFileAttachmentAsync");if(!$h.ScriptHelpers.isNonEmptyString(n))throw Error.argument("uri");if(!$h.ScriptHelpers.isNonEmptyString(t))throw Error.argument("attachmentName");OSF.DDA.OutlookAppOm.$9(n.length,0,2048,"uri");OSF.DDA.OutlookAppOm.$9(t.length,0,255,"attachmentName");var r=$h.CommonParameters.parse(u,!1);var f={uri:n,name:t,__timeout__:6e5};OSF.DDA.OutlookAppOm.$2.$8_0(16,"AddFileAttachmentAsync",f,null,r.$4_0,r.$3_0)},addItemAttachmentAsync:function(n,t){for(var u=[],i=2;i<arguments.length;++i)u[i-2]=arguments[i];OSF.DDA.OutlookAppOm.$2.$5_0(2,"addItemAttachmentAsync");if(!$h.ScriptHelpers.isNonEmptyString(n))throw Error.argument("itemId");if(!$h.ScriptHelpers.isNonEmptyString(t))throw Error.argument("attachmentName");OSF.DDA.OutlookAppOm.$9(n.length,0,200,"itemId");OSF.DDA.OutlookAppOm.$9(t.length,0,255,"attachmentName");var r=$h.CommonParameters.parse(u,!1);var f={itemId:n,name:t,__timeout__:6e5};OSF.DDA.OutlookAppOm.$2.$8_0(19,"AddItemAttachmentAsync",f,null,r.$4_0,r.$3_0)},removeAttachmentAsync:function(n){for(var r=[],t=1;t<arguments.length;++t)r[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(2,"removeAttachmentAsync");if(!$h.ScriptHelpers.isNonEmptyString(n))throw Error.argument("attachmentId");OSF.DDA.OutlookAppOm.$9(n.length,0,200,"attachmentId");var i=$h.CommonParameters.parse(r,!1);OSF.DDA.OutlookAppOm.$2.$8_0(20,"RemoveAttachmentAsync",{attachmentIndex:n},null,i.$4_0,i.$3_0)},getSelectedDataAsync:function(n){for(var f=[],t=1;t<arguments.length;++t)f[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(1,"getSelectedDataAsync");var e=$h.CommonParameters.parse(f,!0);var i;var u,r;if(n!==Microsoft.Office.WebExtension.CoercionType.Html&&n!==Microsoft.Office.WebExtension.CoercionType.Text||!(r=$h.Body.$1n(n,u={val:i}),i=u.val,r))throw Error.argument("coercionType");var o={coercionType:i};OSF.DDA.OutlookAppOm.$2.$8_0(28,"GetSelectedDataAsync",o,null,e.$4_0,e.$3_0)},setSelectedDataAsync:function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(2,"setSelectedDataAsync");var i=$h.CommonParameters.parse(u,!1);if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);OSF.DDA.OutlookAppOm.$9(n.length,0,1e6,"data");var r=$h.ComposeBody.$h(n,i);r&&OSF.DDA.OutlookAppOm.$2.$8_0(29,"SetSelectedDataAsync",r,null,i.$4_0,i.$3_0)},close:function(){OSF.DDA.OutlookAppOm.$2.$8_0(41,"Close",null,null,null,null)},$2H_1:function(){this.$0_0.$A_0();this.$H_1||(this.$H_1=new $h.ComposeBody);return this.$H_1},$o_1:function(){this.$0_0.$A_0();this.$10_1||(this.$10_1=new $h.ComposeSubject);return this.$10_1},saveAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];OSF.DDA.OutlookAppOm.$2.$5_0(2,"saveAsync");var t=$h.CommonParameters.parse(i,!1);OSF.DDA.OutlookAppOm.$2.$8_0(32,"SaveAsync",null,null,t.$4_0,t.$3_0)}};$h.ComposeRecipient=function(n,t){this.$14_0=n;this.$X_0=t};$h.ComposeRecipient.$1k=function(n,t){if(!n&&!t)throw Error.argument("recipients");if(n&&n.length>255)throw Error.argumentOutOfRange("recipients",n.length,_u.ExtensibilityStrings.l_DisplayNameTooLong_Text);if(t&&t.length>571)throw Error.argumentOutOfRange("recipients",t.length,_u.ExtensibilityStrings.l_EmailAddressTooLong_Text);};$h.ComposeRecipient.$3r=function(n){for(var r=n,i=[],t=0;t<r.length;t++){var u=new $h.EmailAddressDetails(r[t]);i[t]=u}return i};$h.ComposeRecipient.$1E=function(n,t){return{address:n,name:t}};$h.ComposeRecipient.prototype={$X_0:null,$14_0:0,getAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];var t=$h.CommonParameters.parse(i,!0);OSF.DDA.OutlookAppOm.$2.$5_0(1,this.$X_0+".getAsync");OSF.DDA.OutlookAppOm.$2.$8_0(15,"GetRecipientsAsync",{recipientField:this.$14_0},$h.ComposeRecipient.$3r,t.$4_0,t.$3_0)},setAsync:function(n){for(var i=[],t=1;t<arguments.length;++t)i[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(2,this.$X_0+".setAsync");this.setAddHelper(n,i,!0)},addAsync:function(n){for(var i=[],t=1;t<arguments.length;++t)i[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(2,this.$X_0+".addAsync");this.setAddHelper(n,i,!1)},setAddHelper:function(n,t,i){OSF.DDA.OutlookAppOm.$9(n.length,0,100,"recipients");var s=$h.CommonParameters.parse(t,!1);var f=[];if(Array.isInstanceOfType(n))for(var r=0;r<n.length;r++)if(String.isInstanceOfType(n[r])){$h.ComposeRecipient.$1k(n[r],n[r]);f[r]=$h.ComposeRecipient.$1E(n[r],n[r])}else if($h.EmailAddressDetails.isInstanceOfType(n[r])){var u=n[r];$h.ComposeRecipient.$1k(u.displayName,u.emailAddress);f[r]=$h.ComposeRecipient.$1E(u.emailAddress,u.displayName)}else if(Object.isInstanceOfType(n[r])){var h=n[r];var e=h.emailAddress;var o=h.displayName;$h.ComposeRecipient.$1k(o,e);f[r]=$h.ComposeRecipient.$1E(e,o)}else throw Error.argument("recipients");else throw Error.argument("recipients");var c=this;OSF.DDA.OutlookAppOm.$2.$8_0(i?21:22,i?"SetRecipientsAsync":"AddRecipientsAsync",{recipientField:this.$14_0,recipientArray:f},function(n){return n},s.$4_0,s.$3_0)}};$h.ComposeRecipient.RecipientField=function(){};$h.ComposeRecipient.RecipientField.prototype={to:0,cc:1,bcc:2,requiredAttendees:0,optionalAttendees:1};$h.ComposeRecipient.RecipientField.registerEnum("$h.ComposeRecipient.RecipientField",!1);$h.ComposeLocation=function(){};$h.ComposeLocation.prototype={getAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];OSF.DDA.OutlookAppOm.$2.$5_0(1,"location.getAsync");var t=$h.CommonParameters.parse(i,!0);OSF.DDA.OutlookAppOm.$2.$8_0(26,"GetLocationAsync",null,null,t.$4_0,t.$3_0)},setAsync:function(n){for(var r=[],t=1;t<arguments.length;++t)r[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(2,"location.setAsync");var i=$h.CommonParameters.parse(r,!1);OSF.DDA.OutlookAppOm.$9(n.length,0,255,"location");OSF.DDA.OutlookAppOm.$2.$8_0(27,"SetLocationAsync",{location:n},null,i.$4_0,i.$3_0)}};$h.ComposeSubject=function(){};$h.ComposeSubject.prototype={getAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];var t=$h.CommonParameters.parse(i,!0);OSF.DDA.OutlookAppOm.$2.$5_0(1,"subject.getAsync");OSF.DDA.OutlookAppOm.$2.$8_0(18,"GetSubjectAsync",null,null,t.$4_0,t.$3_0)},setAsync:function(n){for(var r=[],t=1;t<arguments.length;++t)r[t-1]=arguments[t];var i=$h.CommonParameters.parse(r,!1);OSF.DDA.OutlookAppOm.$2.$5_0(2,"subject.setAsync");if(!String.isInstanceOfType(n))throw Error.argument("data");OSF.DDA.OutlookAppOm.$9(n.length,0,255,"data");OSF.DDA.OutlookAppOm.$2.$8_0(17,"SetSubjectAsync",{subject:n},null,i.$4_0,i.$3_0)}};$h.ComposeTime=function(n){this.$$d_$4y_0=Function.createDelegate(this,this.$4y_0);this.$Y_0=n};$h.ComposeTime.prototype={$Y_0:0,getAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];OSF.DDA.OutlookAppOm.$2.$5_0(1,this.$2Q_0()+".getAsync");var t=$h.CommonParameters.parse(i,!0);OSF.DDA.OutlookAppOm.$2.$8_0(24,"GetTimeAsync",{TimeProperty:this.$Y_0},this.$$d_$4y_0,t.$4_0,t.$3_0)},setAsync:function(n){for(var r=[],t=1;t<arguments.length;++t)r[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(2,this.$2Q_0()+".setAsync");if(!Date.isInstanceOfType(n))throw Error.argumentType("dateTime",Object.getType(n),Date);if(isNaN(n.getTime()))throw Error.argument("dateTime");if(n.getTime()<-864e13||n.getTime()>864e13)throw Error.argumentOutOfRange("dateTime");var i=$h.CommonParameters.parse(r,!1);OSF.DDA.OutlookAppOm.$2.$8_0(25,"SetTimeAsync",{TimeProperty:this.$Y_0,time:n.getTime()},null,i.$4_0,i.$3_0)},$4y_0:function(n){var t=n;return new Date(t)},$2Q_0:function(){return this.$Y_0===1?"start":"end"}};$h.ComposeTime.TimeType=function(){};$h.ComposeTime.TimeType.prototype={start:1,end:2};$h.ComposeTime.TimeType.registerEnum("$h.ComposeTime.TimeType",!1);$h.Contact=function(n){this.$$d_$3x_0=Function.createDelegate(this,this.$3x_0);this.$$d_$1Q_0=Function.createDelegate(this,this.$1Q_0);this.$$d_$1b_0=Function.createDelegate(this,this.$1b_0);this.$$d_$1T_0=Function.createDelegate(this,this.$1T_0);this.$$d_$1X_0=Function.createDelegate(this,this.$1X_0);this.$$d_$3v_0=Function.createDelegate(this,this.$3v_0);this.$$d_$4M_0=Function.createDelegate(this,this.$4M_0);this.$0_0=n;$h.InitialData.$1(this,"personName",this.$$d_$4M_0);$h.InitialData.$1(this,"businessName",this.$$d_$3v_0);$h.InitialData.$1(this,"phoneNumbers",this.$$d_$1X_0);$h.InitialData.$1(this,"emailAddresses",this.$$d_$1T_0);$h.InitialData.$1(this,"urls",this.$$d_$1b_0);$h.InitialData.$1(this,"addresses",this.$$d_$1Q_0);$h.InitialData.$1(this,"contactString",this.$$d_$3x_0)};$h.Contact.prototype={$0_0:null,$K_0:null,$4M_0:function(){return this.$0_0.PersonName},$3v_0:function(){return this.$0_0.BusinessName},$1Q_0:function(){return $h.Entities.$I(this.$0_0,"Addresses")},$1T_0:function(){return $h.Entities.$I(this.$0_0,"EmailAddresses")},$1b_0:function(){return $h.Entities.$I(this.$0_0,"Urls")},$1X_0:function(){if(!this.$K_0){var n=this;this.$K_0=$h.Entities.$E($h.PhoneNumber,this.$0_0,"PhoneNumbers",function(n){return new $h.PhoneNumber(n)})}return this.$K_0},$3x_0:function(){return this.$0_0.ContactString}};$h.CustomProperties=function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");if(Array.isInstanceOfType(n)){var t=n;if(t.length>0)this.$0_0=t[0];else throw Error.argument("data");}else this.$0_0=n};$h.CustomProperties.prototype={$0_0:null,get:function(n){var i=this.$0_0[n];if(typeof i=="string"){var t=i;if(t.length>6&&t.startsWith("Date(")&&t.endsWith(")")){var f=t.substring(5,t.length-1);var r=parseInt(f);if(!isNaN(r)){var u=new Date(r);u&&(i=u)}}}return i},set:function(n,t){OSF.OUtil.isDate(t)&&(t="Date("+t.getTime()+")");this.$0_0[n]=t},remove:function(n){delete this.$0_0[n]},saveAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];var u=2500;if(JSON.stringify(this.$0_0).length>u)throw Error.argument();var t=$h.CommonParameters.parse(i,!1,!0);var r=new $h.SaveDictionaryRequest(t.$3_0,t.$4_0);r.$1i_0(4,"SaveCustomProperties",{customProperties:this.$0_0})}};$h.Diagnostics=function(n,t){this.$$d_$4L_0=Function.createDelegate(this,this.$4L_0);this.$$d_$46_0=Function.createDelegate(this,this.$46_0);this.$$d_$45_0=Function.createDelegate(this,this.$45_0);this.$0_0=n;this.$U_0=t;$h.InitialData.$1(this,"hostName",this.$$d_$45_0);$h.InitialData.$1(this,"hostVersion",this.$$d_$46_0);64===this.$U_0&&$h.InitialData.$1(this,"OWAView",this.$$d_$4L_0)};$h.Diagnostics.prototype={$0_0:null,$U_0:0,$45_0:function(){if(8===this.$U_0)return"Outlook";else if(64===this.$U_0)return"OutlookWebApp";return null},$46_0:function(){return this.$0_0.get_$4X_0()},$4L_0:function(){return this.$0_0.get_$4j_0()}};$h.EmailAddressDetails=function(n){this.$$d_$2R_0=Function.createDelegate(this,this.$2R_0);this.$$d_$2F_0=Function.createDelegate(this,this.$2F_0);this.$$d_$1R_0=Function.createDelegate(this,this.$1R_0);this.$$d_$1S_0=Function.createDelegate(this,this.$1S_0);this.$0_0=n;$h.InitialData.$1(this,"emailAddress",this.$$d_$1S_0);$h.InitialData.$1(this,"displayName",this.$$d_$1R_0);$h.ScriptHelpers.dictionaryContainsKey(n,"appointmentResponse")&&$h.InitialData.$1(this,"appointmentResponse",this.$$d_$2F_0);$h.ScriptHelpers.dictionaryContainsKey(n,"recipientType")&&$h.InitialData.$1(this,"recipientType",this.$$d_$2R_0)};$h.EmailAddressDetails.$1z=function(n){var t={};var r=n.Name;var i=n.UserId;t.name=r||$h.EmailAddressDetails.$1K;t.address=i||$h.EmailAddressDetails.$1K;return new $h.EmailAddressDetails(t)};$h.EmailAddressDetails.prototype={$0_0:null,toJSON:function(){var n={};n.emailAddress=this.$1S_0();n.displayName=this.$1R_0();$h.ScriptHelpers.dictionaryContainsKey(this.$0_0,"appointmentResponse")&&(n.appointmentResponse=this.$2F_0());$h.ScriptHelpers.dictionaryContainsKey(this.$0_0,"recipientType")&&(n.recipientType=this.$2R_0());return n},$1S_0:function(){return this.$0_0.address},$1R_0:function(){return this.$0_0.name},$2F_0:function(){var n=this.$0_0.appointmentResponse;return n<$h.EmailAddressDetails.$1h.length?$h.EmailAddressDetails.$1h[n]:Microsoft.Office.WebExtension.MailboxEnums.ResponseType.None},$2R_0:function(){var n=this.$0_0.recipientType;return n<$h.EmailAddressDetails.$1e.length?$h.EmailAddressDetails.$1e[n]:Microsoft.Office.WebExtension.MailboxEnums.RecipientType.Other}};$h.Entities=function(n,t,i,r){this.$$d_$34_0=Function.createDelegate(this,this.$34_0);this.$$d_$2P_0=Function.createDelegate(this,this.$2P_0);this.$$d_$2M_0=Function.createDelegate(this,this.$2M_0);this.$$d_$2J_0=Function.createDelegate(this,this.$2J_0);this.$$d_$1X_0=Function.createDelegate(this,this.$1X_0);this.$$d_$1b_0=Function.createDelegate(this,this.$1b_0);this.$$d_$1T_0=Function.createDelegate(this,this.$1T_0);this.$$d_$2N_0=Function.createDelegate(this,this.$2N_0);this.$$d_$2T_0=Function.createDelegate(this,this.$2T_0);this.$$d_$1Q_0=Function.createDelegate(this,this.$1Q_0);this.$0_0=n||{};this.$1L_0=t||{};this.$N_0=i;$h.InitialData.$1(this,"addresses",this.$$d_$1Q_0);$h.InitialData.$1(this,"taskSuggestions",this.$$d_$2T_0);$h.InitialData.$1(this,"meetingSuggestions",this.$$d_$2N_0);$h.InitialData.$1(this,"emailAddresses",this.$$d_$1T_0);$h.InitialData.$1(this,"urls",this.$$d_$1b_0);$h.InitialData.$1(this,"phoneNumbers",this.$$d_$1X_0);$h.InitialData.$1(this,"contacts",this.$$d_$2J_0);$h.InitialData.$1(this,"flightReservations",this.$$d_$2M_0);$h.InitialData.$1(this,"parcelDeliveries",this.$$d_$2P_0);this.$B_0=r};$h.Entities.$E=function(n,t,i,r,u,f){var o=null;var e=t[i];if(!e)return new Array(0);u&&(e=$h.Entities.$2e(Object,e,$h.Entities.$3I,f));o=new Array(e.length);for(var c=0,l=e,a=l.length,s=0;s<a;++s){var h=l[s];o[c++]=r?r(h):h}return o};$h.Entities.$I=function(n,t,i){var r=n[t];if(!r)return new Array(0);i&&(r=$h.Entities.$2e(String,r,$h.Entities.$4s,null));return r};$h.Entities.$1x=function(n){return new $h.Contact(n)};$h.Entities.$22=function(n){return new $h.TaskSuggestion(n)};$h.Entities.$20=function(n){return new $h.PhoneNumber(n)};$h.Entities.$3I=function(n,t,i){return n===t?!0:!n||!t?!1:n[i]===t[i]?!0:!1};$h.Entities.$4s=function(n,t,i){return n===t};$h.Entities.$2e=function(n,t,i,r){for(var u=t.length-1;u>=0;u--){for(var e=!1,f=u-1;f>=0;f--)if(i(t[u],t[f],r)){e=!0;break}e&&Array.removeAt(t,u)}return t};$h.Entities.prototype={$N_0:null,$0_0:null,$1L_0:null,$F_0:null,$B_0:0,$11_0:null,$q_0:null,$K_0:null,$g_0:null,$Z_0:null,$i_0:null,$15_0:null,$l_0:null,$u_0:null,$3w_0:function(n){if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.MeetingSuggestion)return this.$2N_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.TaskSuggestion)return this.$2T_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.Address)return this.$1Q_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.PhoneNumber)return this.$1X_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.EmailAddress)return this.$1T_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.Url)return this.$1b_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.Contact)return this.$2J_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.FlightReservations)return this.$2M_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.ParcelDeliveries)return this.$2P_0();return null},$1V_0:function(n){this.$F_0||(this.$F_0={});if(!$h.ScriptHelpers.dictionaryContainsKey(this.$F_0,n)){for(var r=!1,i=0;i<$h.Entities.$16.length;i++){var u=$h.Entities.$16[i];var t=this.$1L_0[u];if(t&&$h.ScriptHelpers.dictionaryContainsKey(t,n)){switch(u){case"EmailAddresses":case"Urls":this.$F_0[n]=$h.Entities.$I(t,n);break;case"Addresses":this.$F_0[n]=$h.Entities.$I(t,n,!0);break;case"PhoneNumbers":this.$F_0[n]=$h.Entities.$E($h.PhoneNumber,t,n,$h.Entities.$20,!1,null);break;case"TaskSuggestions":this.$F_0[n]=$h.Entities.$E($h.TaskSuggestion,t,n,$h.Entities.$22,!0,"TaskString");break;case"MeetingSuggestions":this.$F_0[n]=$h.Entities.$E($h.MeetingSuggestion,t,n,this.$$d_$34_0,!0,"MeetingString");break;case"Contacts":this.$F_0[n]=$h.Entities.$E($h.Contact,t,n,$h.Entities.$1x,!0,"ContactString");break}r=!0;break}}r||(this.$F_0[n]=null)}return this.$F_0[n]},$34_0:function(n){return new $h.MeetingSuggestion(n,this.$N_0)},$1Q_0:function(){this.$Z_0||(this.$Z_0=$h.Entities.$I(this.$0_0,"Addresses",!0));return this.$Z_0},$1T_0:function(){OSF.DDA.OutlookAppOm.$G(this.$B_0);this.$i_0||(this.$i_0=$h.Entities.$I(this.$0_0,"EmailAddresses",!1));return this.$i_0},$1b_0:function(){this.$15_0||(this.$15_0=$h.Entities.$I(this.$0_0,"Urls",!1));return this.$15_0},$1X_0:function(){this.$K_0||(this.$K_0=$h.Entities.$E($h.PhoneNumber,this.$0_0,"PhoneNumbers",$h.Entities.$20));return this.$K_0},$2T_0:function(){OSF.DDA.OutlookAppOm.$G(this.$B_0);this.$11_0||(this.$11_0=$h.Entities.$E($h.TaskSuggestion,this.$0_0,"TaskSuggestions",$h.Entities.$22,!0,"TaskString"));return this.$11_0},$2N_0:function(){OSF.DDA.OutlookAppOm.$G(this.$B_0);this.$q_0||(this.$q_0=$h.Entities.$E($h.MeetingSuggestion,this.$0_0,"MeetingSuggestions",this.$$d_$34_0,!0,"MeetingString"));return this.$q_0},$2J_0:function(){OSF.DDA.OutlookAppOm.$G(this.$B_0);this.$g_0||(this.$g_0=$h.Entities.$E($h.Contact,this.$0_0,"Contacts",$h.Entities.$1x,!0,"ContactString"));return this.$g_0},$2P_0:function(){OSF.DDA.OutlookAppOm.$G(this.$B_0);this.$u_0||(this.$u_0=$h.Entities.$E(Object,this.$0_0,"ParcelDeliveries",null));return this.$u_0},$2M_0:function(){OSF.DDA.OutlookAppOm.$G(this.$B_0);this.$l_0||(this.$l_0=$h.Entities.$E(Object,this.$0_0,"FlightReservations",null));return this.$l_0}};$h.ReplyConstants=function(){};$h.AsyncConstants=function(){};Office.cast.item=function(){};Office.cast.item.toItemRead=function(n){if($h.Item.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toItemCompose=function(n){if($h.ComposeItem.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toMessage=function(n){return Office.cast.item.toMessageRead(n)};Office.cast.item.toMessageRead=function(n){if($h.Message.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toMessageCompose=function(n){if($h.MessageCompose.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toMeetingRequest=function(n){if($h.MeetingRequest.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toAppointment=function(n){return Office.cast.item.toAppointmentRead(n)};Office.cast.item.toAppointmentRead=function(n){if($h.Appointment.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toAppointmentCompose=function(n){if($h.AppointmentCompose.isInstanceOfType(n))return n;throw Error.argumentType();};$h.Item=function(n){this.$$d_$2H_1=Function.createDelegate(this,this.$2H_1);this.$$d_$2G_1=Function.createDelegate(this,this.$2G_1);this.$$d_$4D_1=Function.createDelegate(this,this.$4D_1);this.$$d_$4E_1=Function.createDelegate(this,this.$4E_1);this.$$d_$40_1=Function.createDelegate(this,this.$40_1);this.$$d_$3z_1=Function.createDelegate(this,this.$3z_1);$h.Item.initializeBase(this,[n]);$h.InitialData.$1(this,"dateTimeCreated",this.$$d_$3z_1);$h.InitialData.$1(this,"dateTimeModified",this.$$d_$40_1);$h.InitialData.$1(this,"itemId",this.$$d_$4E_1);$h.InitialData.$1(this,"itemClass",this.$$d_$4D_1);$h.InitialData.$1(this,"attachments",this.$$d_$2G_1);$h.InitialData.$1(this,"body",this.$$d_$2H_1)};$h.Item.prototype={$H_1:null,$4E_1:function(){return this.$0_0.get_$4d_0()},$4D_1:function(){return this.$0_0.get_$4c_0()},$3z_1:function(){return this.$0_0.get_$36_0()},$40_1:function(){return this.$0_0.get_$37_0()},$2G_1:function(){return this.$0_0.get_$2p_0()},$2H_1:function(){this.$H_1||(this.$H_1=new $h.Body);return this.$H_1}};$h.ItemBase=function(n){this.$$d_$31_0=Function.createDelegate(this,this.$31_0);this.$$d_$4H_0=Function.createDelegate(this,this.$4H_0);this.$$d_getItemType=Function.createDelegate(this,this.getItemType);this.$0_0=n;$h.InitialData.$1(this,"itemType",this.$$d_getItemType);$h.InitialData.$1(this,"notificationMessages",this.$$d_$4H_0)};$h.ItemBase.prototype={$0_0:null,$s_0:null,get_data:function(){return this.$0_0},loadCustomPropertiesAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];var t=$h.CommonParameters.parse(i,!0,!0);var r=new $h.LoadDictionaryRequest(this.$$d_$31_0,"customProperties",t.$3_0,t.$4_0);r.$1i_0(3,"LoadCustomProperties",{})},$31_0:function(n){return new $h.CustomProperties(n)},$4H_0:function(){this.$s_0||(this.$s_0=new $h.NotificationMessages);return this.$s_0}};$h.MeetingRequest=function(n){this.$$d_$1Z_3=Function.createDelegate(this,this.$1Z_3);this.$$d_$1W_3=Function.createDelegate(this,this.$1W_3);this.$$d_$n_3=Function.createDelegate(this,this.$n_3);this.$$d_$1U_3=Function.createDelegate(this,this.$1U_3);this.$$d_$1a_3=Function.createDelegate(this,this.$1a_3);$h.MeetingRequest.initializeBase(this,[n]);$h.InitialData.$1(this,"start",this.$$d_$1a_3);$h.InitialData.$1(this,"end",this.$$d_$1U_3);$h.InitialData.$1(this,"location",this.$$d_$n_3);$h.InitialData.$1(this,"optionalAttendees",this.$$d_$1W_3);$h.InitialData.$1(this,"requiredAttendees",this.$$d_$1Z_3)};$h.MeetingRequest.prototype={$1a_3:function(){return this.$0_0.get_$2i_0()},$1U_3:function(){return this.$0_0.get_$26_0()},$n_3:function(){return this.$0_0.get_$2X_0()},$1W_3:function(){return this.$0_0.get_$1A_0()},$1Z_3:function(){return this.$0_0.get_$1m_0()}};$h.MeetingSuggestion=function(n,t){this.$$d_$42_0=Function.createDelegate(this,this.$42_0);this.$$d_$4S_0=Function.createDelegate(this,this.$4S_0);this.$$d_$o_0=Function.createDelegate(this,this.$o_0);this.$$d_$n_0=Function.createDelegate(this,this.$n_0);this.$$d_$3t_0=Function.createDelegate(this,this.$3t_0);this.$$d_$4F_0=Function.createDelegate(this,this.$4F_0);this.$0_0=n;this.$N_0=t;$h.InitialData.$1(this,"meetingString",this.$$d_$4F_0);$h.InitialData.$1(this,"attendees",this.$$d_$3t_0);$h.InitialData.$1(this,"location",this.$$d_$n_0);$h.InitialData.$1(this,"subject",this.$$d_$o_0);$h.InitialData.$1(this,"start",this.$$d_$4S_0);$h.InitialData.$1(this,"end",this.$$d_$42_0)};$h.MeetingSuggestion.prototype={$N_0:null,$0_0:null,$c_0:null,$4F_0:function(){return this.$0_0.MeetingString},$n_0:function(){return this.$0_0.Location},$o_0:function(){return this.$0_0.Subject},$4S_0:function(){var n=this.$1y_0("StartTime");var t=$h.MeetingSuggestionTimeDecoder.resolve(n,this.$N_0);return t.getTime()!==n.getTime()?OSF.DDA.OutlookAppOm.$2.convertToUtcClientTime(OSF.DDA.OutlookAppOm.$2.$1G_0(t)):n},$42_0:function(){var n=this.$1y_0("EndTime");var t=$h.MeetingSuggestionTimeDecoder.resolve(n,this.$N_0);return t.getTime()!==n.getTime()?OSF.DDA.OutlookAppOm.$2.convertToUtcClientTime(OSF.DDA.OutlookAppOm.$2.$1G_0(t)):n},$1y_0:function(n){var t=this.$0_0[n];return t?new Date(t):null},$3t_0:function(){if(!this.$c_0){var n=this;this.$c_0=$h.Entities.$E($h.EmailAddressDetails,this.$0_0,"Attendees",function(n){return $h.EmailAddressDetails.$1z(n)})}return this.$c_0}};$h.MeetingSuggestionTimeDecoder=function(){};$h.MeetingSuggestionTimeDecoder.resolve=function(n,t){if(!t)return n;try{var f;var i;var r;var u=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0);var s,o,e;if(e=$h.MeetingSuggestionTimeDecoder.$3A(n,s={val:r},o={val:f}),r=s.val,f=o.val,e){i=$h.PreciseDate.isInstanceOfType(r)?$h.MeetingSuggestionTimeDecoder.$4l(u,r):$h.RelativeDate.isInstanceOfType(r)?$h.MeetingSuggestionTimeDecoder.$4m(u,r):u;if(isNaN(i.getTime()))return t;i.setMilliseconds(i.getMilliseconds()+f);return i}else return n}catch(h){return t}};$h.MeetingSuggestionTimeDecoder.$2W=function(n){return null===n||n===undefined};$h.MeetingSuggestionTimeDecoder.$4l=function(n,t){var r=t.$1t_1;var f=t.$r_1?t.$r_1-1:n.getMonth();var u=t.$1H_1;if(!u)return n;var i;if($h.MeetingSuggestionTimeDecoder.$2W(r)){i=new Date(n.getFullYear(),f,u);i.getTime()<n.getTime()&&(i=new Date(n.getFullYear()+1,f,u))}else i=new Date(r<50?2e3+r:1900+r,f,u);return i.getMonth()!==f?n:i};$h.MeetingSuggestionTimeDecoder.$4m=function(n,t){var i;switch(t.$1o_1){case 0:i=new Date(n.getFullYear(),n.getMonth(),n.getDate());i.setDate(i.getDate()+t.$D_1);return i;case 5:return $h.MeetingSuggestionTimeDecoder.$3M(n,t.$D_1,t.$L_1);case 2:var r=1;switch(t.$O_1){case 1:break;case 2:r=16;break;default:t.$D_1||(r=n.getDate());break}i=new Date(n.getFullYear(),n.getMonth(),r);i.setMonth(i.getMonth()+t.$D_1);i.getTime()<n.getTime()&&i.setDate(i.getDate()+n.getDate()-1);return i;case 1:i=new Date(n.getFullYear(),n.getMonth(),n.getDate());i.setDate(n.getDate()+7*t.$D_1);if(t.$O_1!==1&&t.$O_1){if(t.$O_1===2){i.setDate(i.getDate()+5-i.getDay());return i}}else{i.setDate(i.getDate()+1-i.getDay());return i.getTime()<n.getTime()?n:i}break;case 4:return $h.MeetingSuggestionTimeDecoder.$3N(n,t);case 3:if(t.$D_1>0)return new Date(n.getFullYear()+t.$D_1,0,1);break;default:break}return n};$h.MeetingSuggestionTimeDecoder.$3M=function(n,t,i){if(t>-5&&t<5){var u;var f;u=(i+6)%7+1;f=7*t+(u-n.getDay());n.setDate(n.getDate()+f);return n}else{var r=(i-n.getDay())%7;r<0&&(r+=7);n.setDate(n.getDate()+r);return n}};$h.MeetingSuggestionTimeDecoder.$3N=function(n,t){var f;var i;var r;f=n;if(t.$L_1<=0||t.$L_1>12||t.$D_1<=0||t.$D_1>5)return n;var e=(12+t.$L_1-f.getMonth()-1)%12;i=new Date(f.getFullYear(),f.getMonth()+e,1);if(t.$O_1===1)if(t.$D_1===1&&i.getDay()!==6&&i.getDay())return i;else{r=new Date(i.getFullYear(),i.getMonth(),i.getDate());r.setDate(r.getDate()+(8-i.getDay())%7);i.getDay()!==6&&i.getDay()&&i.getDay()!==1&&r.setDate(r.getDate()-7);r.setDate(r.getDate()+7*(t.$D_1-1));return r.getMonth()+1!==t.$L_1?n:r}else{r=new Date(i.getFullYear(),i.getMonth(),$h.MeetingSuggestionTimeDecoder.$39(i.getMonth(),i.getFullYear()));var u=1-r.getDay();u>0&&(u=u-7);r.setDate(r.getDate()+u);r.setDate(r.getDate()+7*(1-t.$D_1));return r.getMonth()+1!==t.$L_1?i.getDay()!==6&&i.getDay()?i:n:r}};$h.MeetingSuggestionTimeDecoder.$3A=function(n,t,i){var f=32767;t.val=null;i.val=0;if(!n)return!1;i.val=$h.MeetingSuggestionTimeDecoder.$4U(n);var e=n.getTime()-i.val;var r=(e-$h.MeetingSuggestionTimeDecoder.$1v.getTime())/864e5;if(r<0)return!1;else if(r>=262144)return!1;else{var u=r>>15;r=r&f;switch(u){case 0:return $h.MeetingSuggestionTimeDecoder.$3B(r,t);case 1:return $h.MeetingSuggestionTimeDecoder.$3C(r,t);default:return!1}}};$h.MeetingSuggestionTimeDecoder.$3B=function(n,t){var h=7;var e=15;var o=31;var s=127;var u=null;var r=0;var f=0;t.val=null;var i=n>>12&h;if((i&4)==4){u=n>>5&s;if((i&2)==2){if((i&1)==1)return!1;r=n>>1&e}}else{(i&2)==2&&(r=n>>8&e);(i&1)==1&&(f=n>>3&o)}t.val=new $h.PreciseDate(f,r,u);return!0};$h.MeetingSuggestionTimeDecoder.$3C=function(n,t){var o=15;var e=63;var h=7;var s=3;var r=n&o;n>>=4;var i=$h.MeetingSuggestionTimeDecoder.$3P(n&e,6);n>>=6;var f=n&h;n>>=3;var u=n&s;try{t.val=new $h.RelativeDate(u,i,f,r);return!0}catch(c){t.val=null;return!1}};$h.MeetingSuggestionTimeDecoder.$3P=function(n,t){var i=1<<t-1;var r=(1<<t)-1;return(n&i)===i?-((n^r)+1):n};$h.MeetingSuggestionTimeDecoder.$39=function(n,t){return 32-new Date(t,n,32).getDate()};$h.MeetingSuggestionTimeDecoder.$4U=function(n){var t=0;t+=n.getUTCHours()*3600;t+=n.getUTCMinutes()*60;t+=n.getUTCSeconds();t*=1e3;t+=n.getUTCMilliseconds();return t};$h.ExtractedDate=function(){};$h.PreciseDate=function(n,t,i){$h.PreciseDate.initializeBase(this);this.$1H_1=n;this.$r_1=t;$h.MeetingSuggestionTimeDecoder.$2W(i)||(this.$1t_1=i%100)};$h.PreciseDate.prototype={$1H_1:0,$r_1:0,$1t_1:null};$h.RelativeDate=function(n,t,i,r){$h.RelativeDate.initializeBase(this);this.$O_1=n;this.$D_1=t;this.$1o_1=i;this.$L_1=r};$h.RelativeDate.prototype={$O_1:0,$D_1:0,$1o_1:0,$L_1:0};$h.Message=function(n){this.$$d_$2K_2=Function.createDelegate(this,this.$2K_2);this.$$d_$4A_2=Function.createDelegate(this,this.$4A_2);this.$$d_$2I_2=Function.createDelegate(this,this.$2I_2);this.$$d_$2U_2=Function.createDelegate(this,this.$2U_2);this.$$d_$44_2=Function.createDelegate(this,this.$44_2);this.$$d_$4Q_2=Function.createDelegate(this,this.$4Q_2);this.$$d_$2O_2=Function.createDelegate(this,this.$2O_2);this.$$d_$o_2=Function.createDelegate(this,this.$o_2);$h.Message.initializeBase(this,[n]);$h.InitialData.$1(this,"subject",this.$$d_$o_2);$h.InitialData.$1(this,"normalizedSubject",this.$$d_$2O_2);$h.InitialData.$1(this,"sender",this.$$d_$4Q_2);$h.InitialData.$1(this,"from",this.$$d_$44_2);$h.InitialData.$1(this,"to",this.$$d_$2U_2);$h.InitialData.$1(this,"cc",this.$$d_$2I_2);$h.InitialData.$1(this,"internetMessageId",this.$$d_$4A_2);$h.InitialData.$1(this,"conversationId",this.$$d_$2K_2)};$h.Message.prototype={getEntities:function(){return this.$0_0.$m_0()},getEntitiesByType:function(n){return this.$0_0.$2L_0(n)},getFilteredEntitiesByName:function(n){return this.$0_0.$1V_0(n)},getRegExMatches:function(){OSF.DDA.OutlookAppOm.$2.$5_0(1,"getRegExMatches");return this.$0_0.$1Y_0()},getRegExMatchesByName:function(n){OSF.DDA.OutlookAppOm.$2.$5_0(1,"getRegExMatchesByName");return this.$0_0.$2S_0(n)},displayReplyForm:function(n){OSF.DDA.OutlookAppOm.$2.$24_0(n)},displayReplyAllForm:function(n){OSF.DDA.OutlookAppOm.$2.$23_0(n)},getItemType:function(){return Microsoft.Office.WebExtension.MailboxEnums.ItemType.Message},$o_2:function(){return this.$0_0.get_$2l_0()},$2O_2:function(){return this.$0_0.get_$2d_0()},$4Q_2:function(){return this.$0_0.get_$4q_0()},$44_2:function(){return this.$0_0.get_$3O_0()},$2U_2:function(){return this.$0_0.get_$1m_0()},$2I_2:function(){return this.$0_0.get_$1A_0()},$4A_2:function(){return this.$0_0.get_$4a_0()},$2K_2:function(){return this.$0_0.get_$1w_0()}};$h.MessageCompose=function(n){this.$$d_$2K_2=Function.createDelegate(this,this.$2K_2);this.$$d_$3u_2=Function.createDelegate(this,this.$3u_2);this.$$d_$2I_2=Function.createDelegate(this,this.$2I_2);this.$$d_$2U_2=Function.createDelegate(this,this.$2U_2);$h.MessageCompose.initializeBase(this,[n]);$h.InitialData.$1(this,"to",this.$$d_$2U_2);$h.InitialData.$1(this,"cc",this.$$d_$2I_2);$h.InitialData.$1(this,"bcc",this.$$d_$3u_2);$h.InitialData.$1(this,"conversationId",this.$$d_$2K_2)};$h.MessageCompose.prototype={$12_2:null,$e_2:null,$d_2:null,getItemType:function(){return Microsoft.Office.WebExtension.MailboxEnums.ItemType.Message},$2U_2:function(){this.$0_0.$A_0();this.$12_2||(this.$12_2=new $h.ComposeRecipient(0,"to"));return this.$12_2},$2I_2:function(){this.$0_0.$A_0();this.$e_2||(this.$e_2=new $h.ComposeRecipient(1,"cc"));return this.$e_2},$3u_2:function(){this.$0_0.$A_0();this.$d_2||(this.$d_2=new $h.ComposeRecipient(2,"bcc"));return this.$d_2},$2K_2:function(){return this.$0_0.get_$1w_0()}};$h.NotificationMessages=function(){};$h.NotificationMessages.$2Y=function(n){var i;var t;i=n.type;if(i===Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.ProgressIndicator)t=1;else if(i===Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.InformationalMessage)t=0;else if(i===Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.ErrorMessage)t=2;else throw Error.argument("type");n.type=t};$h.NotificationMessages.$1r=function(n){if(!$h.ScriptHelpers.isNonEmptyString(n))throw Error.argument("key");OSF.DDA.OutlookAppOm.$9(n.length,0,32,"key")};$h.NotificationMessages.$2o=function(n){if(!$h.ScriptHelpers.isNonEmptyString(n.type))throw Error.argument("type");if(n.type===Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.InformationalMessage){if(!$h.ScriptHelpers.isNonEmptyString(n.icon))throw Error.argument("icon");OSF.DDA.OutlookAppOm.$9(n.icon.length,0,32,"icon");if($h.ScriptHelpers.isUndefined(n.persistent))throw Error.argument("persistent");if(!Boolean.isInstanceOfType(n.persistent))throw Error.argumentType("persistent",Object.getType(n.persistent),Boolean);}else{if(!$h.ScriptHelpers.isUndefined(n.icon))throw Error.argument("icon");if(!$h.ScriptHelpers.isUndefined(n.persistent))throw Error.argument("persistent");}if(!$h.ScriptHelpers.isNonEmptyString(n.message))throw Error.argument("message");OSF.DDA.OutlookAppOm.$9(n.message.length,0,150,"message")};$h.NotificationMessages.prototype={addAsync:function(n,t){for(var u=[],i=2;i<arguments.length;++i)u[i-2]=arguments[i];OSF.DDA.OutlookAppOm.$2.$5_0(0,"NotificationMessages.addAsync");var f=$h.CommonParameters.parse(u,!1);$h.NotificationMessages.$1r(n);$h.NotificationMessages.$2o(t);var r={};r=$h.ScriptHelpers.deepClone(t);r.key=n;$h.NotificationMessages.$2Y(r);OSF.DDA.OutlookAppOm.$2.$8_0(33,"AddNotificationMessageAsync",r,null,f.$4_0,f.$3_0)},getAllAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];OSF.DDA.OutlookAppOm.$2.$5_0(0,"NotificationMessages.getAllAsync");var t=$h.CommonParameters.parse(i,!0);OSF.DDA.OutlookAppOm.$2.$8_0(34,"GetAllNotificationMessagesAsync",null,null,t.$4_0,t.$3_0)},replaceAsync:function(n,t){for(var u=[],i=2;i<arguments.length;++i)u[i-2]=arguments[i];OSF.DDA.OutlookAppOm.$2.$5_0(0,"NotificationMessages.replaceAsync");var f=$h.CommonParameters.parse(u,!1);$h.NotificationMessages.$1r(n);$h.NotificationMessages.$2o(t);var r={};r=$h.ScriptHelpers.deepClone(t);r.key=n;$h.NotificationMessages.$2Y(r);OSF.DDA.OutlookAppOm.$2.$8_0(35,"ReplaceNotificationMessageAsync",r,null,f.$4_0,f.$3_0)},removeAsync:function(n){for(var r=[],t=1;t<arguments.length;++t)r[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(0,"NotificationMessages.removeAsync");var i=$h.CommonParameters.parse(r,!1);$h.NotificationMessages.$1r(n);var u={key:n};OSF.DDA.OutlookAppOm.$2.$8_0(36,"RemoveNotificationMessageAsync",u,null,i.$4_0,i.$3_0)}};$h.OutlookErrorManager=function(){};$h.OutlookErrorManager.getErrorArgs=function(n){$h.OutlookErrorManager.$1c||$h.OutlookErrorManager.$4Y();return OSF.DDA.ErrorCodeManager.getErrorArgs(n)};$h.OutlookErrorManager.$4Y=function(){$h.OutlookErrorManager.$7(9e3,"AttachmentSizeExceeded",_u.ExtensibilityStrings.l_AttachmentExceededSize_Text);$h.OutlookErrorManager.$7(9001,"NumberOfAttachmentsExceeded",_u.ExtensibilityStrings.l_ExceededMaxNumberOfAttachments_Text);$h.OutlookErrorManager.$7(9002,"InternalFormatError",_u.ExtensibilityStrings.l_InternalFormatError_Text);$h.OutlookErrorManager.$7(9003,"InvalidAttachmentId",_u.ExtensibilityStrings.l_InvalidAttachmentId_Text);$h.OutlookErrorManager.$7(9004,"InvalidAttachmentPath",_u.ExtensibilityStrings.l_InvalidAttachmentPath_Text);$h.OutlookErrorManager.$7(9005,"CannotAddAttachmentBeforeUpgrade",_u.ExtensibilityStrings.l_CannotAddAttachmentBeforeUpgrade_Text);$h.OutlookErrorManager.$7(9006,"AttachmentDeletedBeforeUploadCompletes",_u.ExtensibilityStrings.l_AttachmentDeletedBeforeUploadCompletes_Text);$h.OutlookErrorManager.$7(9007,"AttachmentUploadGeneralFailure",_u.ExtensibilityStrings.l_AttachmentUploadGeneralFailure_Text);$h.OutlookErrorManager.$7(9008,"AttachmentToDeleteDoesNotExist",_u.ExtensibilityStrings.l_DeleteAttachmentDoesNotExist_Text);$h.OutlookErrorManager.$7(9009,"AttachmentDeleteGeneralFailure",_u.ExtensibilityStrings.l_AttachmentDeleteGeneralFailure_Text);$h.OutlookErrorManager.$7(9010,"InvalidEndTime",_u.ExtensibilityStrings.l_InvalidEndTime_Text);$h.OutlookErrorManager.$7(9011,"HtmlSanitizationFailure",_u.ExtensibilityStrings.l_HtmlSanitizationFailure_Text);$h.OutlookErrorManager.$7(9012,"NumberOfRecipientsExceeded",String.format(_u.ExtensibilityStrings.l_NumberOfRecipientsExceeded_Text,500));$h.OutlookErrorManager.$7(9013,"NoValidRecipientsProvided",_u.ExtensibilityStrings.l_NoValidRecipientsProvided_Text);$h.OutlookErrorManager.$7(9014,"CursorPositionChanged",_u.ExtensibilityStrings.l_CursorPositionChanged_Text);$h.OutlookErrorManager.$7(9016,"InvalidSelection",_u.ExtensibilityStrings.l_InvalidSelection_Text);$h.OutlookErrorManager.$7(9017,"AccessRestricted","");$h.OutlookErrorManager.$7(9018,"GenericTokenError","");$h.OutlookErrorManager.$7(9019,"GenericSettingsError","");$h.OutlookErrorManager.$7(9020,"GenericResponseError","");$h.OutlookErrorManager.$7(9021,"SaveError",_u.ExtensibilityStrings.l_SaveError_Text);$h.OutlookErrorManager.$7(9022,"MessageInDifferentStoreError",_u.ExtensibilityStrings.l_MessageInDifferentStoreError_Text);$h.OutlookErrorManager.$7(9023,"DuplicateNotificationKey",_u.ExtensibilityStrings.l_DuplicateNotificationKey_Text);$h.OutlookErrorManager.$7(9024,"NotificationKeyNotFound",_u.ExtensibilityStrings.l_NotificationKeyNotFound_Text);$h.OutlookErrorManager.$7(9025,"NumberOfNotificationsExceeded",_u.ExtensibilityStrings.l_NumberOfNotificationsExceeded_Text);$h.OutlookErrorManager.$1c=!0};$h.OutlookErrorManager.$7=function(n,t,i){OSF.DDA.ErrorCodeManager.addErrorMessage(n,{name:t,message:i})};$h.OutlookErrorManager.OutlookErrorCodes=function(){};$h.OutlookErrorManager.OsfDdaErrorCodes=function(){};$h.PhoneNumber=function(n){this.$$d_$4O_0=Function.createDelegate(this,this.$4O_0);this.$$d_$4K_0=Function.createDelegate(this,this.$4K_0);this.$$d_$4N_0=Function.createDelegate(this,this.$4N_0);this.$0_0=n;$h.InitialData.$1(this,"phoneString",this.$$d_$4N_0);$h.InitialData.$1(this,"originalPhoneString",this.$$d_$4K_0);$h.InitialData.$1(this,"type",this.$$d_$4O_0)};$h.PhoneNumber.prototype={$0_0:null,$4N_0:function(){return this.$0_0.PhoneString},$4K_0:function(){return this.$0_0.OriginalPhoneString},$4O_0:function(){return this.$0_0.Type}};$h.TaskSuggestion=function(n){this.$$d_$3q_0=Function.createDelegate(this,this.$3q_0);this.$$d_$4T_0=Function.createDelegate(this,this.$4T_0);this.$0_0=n;$h.InitialData.$1(this,"taskString",this.$$d_$4T_0);$h.InitialData.$1(this,"assignees",this.$$d_$3q_0)};$h.TaskSuggestion.prototype={$0_0:null,$a_0:null,$4T_0:function(){return this.$0_0.TaskString},$3q_0:function(){if(!this.$a_0){var n=this;this.$a_0=$h.Entities.$E($h.EmailAddressDetails,this.$0_0,"Assignees",function(n){return $h.EmailAddressDetails.$1z(n)})}return this.$a_0}};$h.UserProfile=function(n){this.$$d_$4V_0=Function.createDelegate(this,this.$4V_0);this.$$d_$1S_0=Function.createDelegate(this,this.$1S_0);this.$$d_$1R_0=Function.createDelegate(this,this.$1R_0);this.$0_0=n;$h.InitialData.$1(this,"displayName",this.$$d_$1R_0);$h.InitialData.$1(this,"emailAddress",this.$$d_$1S_0);$h.InitialData.$1(this,"timeZone",this.$$d_$4V_0)};$h.UserProfile.prototype={$0_0:null,$1R_0:function(){return this.$0_0.get_$50_0()},$1S_0:function(){return this.$0_0.get_$51_0()},$4V_0:function(){return this.$0_0.get_$52_0()}};$h.RequestState=function(){};$h.RequestState.prototype={unsent:0,opened:1,headersReceived:2,loading:3,done:4};$h.RequestState.registerEnum("$h.RequestState",!1);$h.CommonParameters=function(n,t,i){this.$S_0=n;this.$3_0=t;this.$4_0=i};$h.CommonParameters.parse=function(n,t,i){var e;var s,h;if(i&&(h=$h.CommonParameters.$4z(n,s={val:e}),e=s.val,h))return e;var f=n.length;var r=null;var u=null;var o=null;if(f===1)if(Function.isInstanceOfType(n[0]))u=n[0];else if(Object.isInstanceOfType(n[0]))r=n[0];else throw Error.argumentType();else if(f===2){if(!Object.isInstanceOfType(n[0]))throw Error.argument("options");if(!Function.isInstanceOfType(n[1]))throw Error.argument("callback");r=n[0];u=n[1]}else if(f)throw Error.parameterCount(_u.ExtensibilityStrings.l_ParametersNotAsExpected_Text);if(t&&!u)throw Error.argumentNull("callback");r&&!$h.ScriptHelpers.isNullOrUndefined(r.asyncContext)&&(o=r.asyncContext);return new $h.CommonParameters(r,u,o)};$h.CommonParameters.$4z=function(n,t){t.val=null;var i=n.length;var u=null;var r=null;if(!i||i>2||!Function.isInstanceOfType(n[0]))return!1;u=n[0];i>1&&(r=n[1]);t.val=new $h.CommonParameters(null,u,r);return!0};$h.CommonParameters.prototype={$S_0:null,$3_0:null,$4_0:null,get_options:function(){return this.$S_0},get_callback:function(){return this.$3_0},get_asyncContext:function(){return this.$4_0}};$h.EwsRequest=function(n){$h.EwsRequest.initializeBase(this,[n])};$h.EwsRequest.prototype={readyState:1,status:0,statusText:null,onreadystatechange:null,responseText:null,get_$2j_1:function(){return this.status},set_$2j_1:function(n){this.status=n;return n},get_$2k_1:function(){return this.statusText},set_$2k_1:function(n){this.statusText=n;return n},get_$1f_1:function(){return this.readyState},set_$1f_1:function(n){this.readyState=n;return n},get_hasOnReadyStateChangeCallback:function(){return!$h.ScriptHelpers.isNullOrUndefined(this.onreadystatechange)},get_$1g_1:function(){return this.responseText},set_$1g_1:function(n){this.responseText=n;return n},send:function(n){this.$2t_1();$h.ScriptHelpers.isNullOrUndefined(n)&&this.$1j_1();this.$1i_0(5,"EwsRequest",{body:n})},$2s_1:function(){$h.ScriptHelpers.isNullOrUndefined(this.onreadystatechange)||this.onreadystatechange()},$4k_1:function(n){},executeExtraFailedResponseSteps:function(){}};$h.InitialData=function(n){this.$0_0=n;this.$B_0=this.$2q_0()};$h.InitialData.$1=function(n,t,i){var r={get:i,configurable:!1};Object.defineProperty(n,t,r)};$h.InitialData.prototype={$13_0:null,$f_0:null,$b_0:null,$x_0:null,$k_0:null,$0_0:null,$B_0:0,get_$4d_0:function(){return this.$0_0.id},get_$4c_0:function(){return this.$0_0.itemClass},get_$36_0:function(){return new Date(this.$0_0.dateTimeCreated)},get_$37_0:function(){return new Date(this.$0_0.dateTimeModified)},get_$38_0:function(){return new Date(this.$0_0.dateTimeSent)},get_$2l_0:function(){this.$A_0();return this.$0_0.subject},get_$2d_0:function(){this.$A_0();return this.$0_0.normalizedSubject},get_$4a_0:function(){return this.$0_0.internetMessageId},get_$1w_0:function(){return this.$0_0.conversationId},get_$4q_0:function(){this.$A_0();var n=this.$0_0.sender;return $h.ScriptHelpers.isNullOrUndefined(n)?null:new $h.EmailAddressDetails(n)},get_$3O_0:function(){this.$A_0();var n=this.$0_0.from;return $h.ScriptHelpers.isNullOrUndefined(n)?null:new $h.EmailAddressDetails(n)},get_$1m_0:function(){this.$A_0();null===this.$13_0&&(this.$13_0=this.$1D_0("to"));return this.$13_0},get_$1A_0:function(){this.$A_0();null===this.$f_0&&(this.$f_0=this.$1D_0("cc"));return this.$f_0},get_$2p_0:function(){this.$A_0();null===this.$b_0&&(this.$b_0=this.$2z_0());return this.$b_0},get_$3K_0:function(){return this.$0_0.ewsUrl},get_$4f_0:function(){return this.$0_0.marketplaceAssetId},get_$3L_0:function(){return this.$0_0.extensionId},get_$4g_0:function(){return this.$0_0.marketplaceContentMarket},get_$2u_0:function(){return this.$0_0.consentMetadata},get_$4b_0:function(){return this.$0_0.isRead},get_$3H_0:function(){return this.$0_0.endNodeUrl},get_$3J_0:function(){return this.$0_0.entryPointUrl},get_$2i_0:function(){return new Date(this.$0_0.start)},get_$26_0:function(){return new Date(this.$0_0.end)},get_$2X_0:function(){return this.$0_0.location},get_$4n_0:function(){this.$A_0();null===this.$x_0&&(this.$x_0=this.$1D_0("resources"));return this.$x_0},get_$4h_0:function(){this.$A_0();var n=this.$0_0.organizer;return $h.ScriptHelpers.isNullOrUndefined(n)?null:new $h.EmailAddressDetails(n)},get_$50_0:function(){return this.$0_0.userDisplayName},get_$51_0:function(){return this.$0_0.userEmailAddress},get_$52_0:function(){return this.$0_0.userTimeZone},get_$1l_0:function(){return this.$0_0.timeZoneOffsets},get_$4X_0:function(){return this.$0_0.hostVersion},get_$4j_0:function(){return this.$0_0.owaView},get_$4i_0:function(){return this.$0_0.overrideWindowOpen},$m_0:function(){this.$k_0||(this.$k_0=new $h.Entities(this.$0_0.entities,this.$0_0.filteredEntities,this.get_$38_0(),this.$B_0));return this.$k_0},$2L_0:function(n){var t=this.$m_0();return t.$3w_0(n)},$1V_0:function(n){var t=this.$m_0();return t.$1V_0(n)},$1Y_0:function(){return this.$0_0.regExMatches?this.$0_0.regExMatches:null},$2S_0:function(n){var t=this.$1Y_0();return!t||!t[n]?null:t[n]},$A_0:function(){OSF.DDA.OutlookAppOm.$G(this.$B_0)},$1D_0:function(n){var i=this.$0_0[n];if($h.ScriptHelpers.isNullOrUndefined(i))return[];for(var r=[],t=0;t<i.length;t++)$h.ScriptHelpers.isNullOrUndefined(i[t])||(r[t]=new $h.EmailAddressDetails(i[t]));return r},$2z_0:function(){var t=this.$0_0.attachments;if($h.ScriptHelpers.isNullOrUndefined(t))return[];for(var i=[],n=0;n<t.length;n++)$h.ScriptHelpers.isNullOrUndefined(t[n])||(i[n]=new $h.AttachmentDetails(t[n]));return i},$2q_0:function(){var i=1;var r=2;var n=3;var t=this.$0_0.permissionLevel;if($h.ScriptHelpers.isUndefined(this.$B_0))return 0;switch(t){case i:return 1;case n:return 2;case r:return 3;default:return 0}}};$h.LoadDictionaryRequest=function(n,t,i,r){$h.LoadDictionaryRequest.initializeBase(this,[r]);this.$1F_1=n;this.$1J_1=t;this.$3_1=i};$h.LoadDictionaryRequest.prototype={$1J_1:null,$1F_1:null,$3_1:null,handleResponse:function(n){if(n.wasSuccessful){var i=n[this.$1J_1];var t=JSON.parse(i);this.createAsyncResult(this.$1F_1(t),0,0,null)}else this.createAsyncResult(null,1,9020,n.errorMessage);this.$3_1(this.$P_0)}};$h.ProxyRequestBase=function(n){$h.ProxyRequestBase.initializeBase(this,[n])};$h.ProxyRequestBase.prototype={handleResponse:function(n){if(n.wasProxySuccessful){this.set_$2j_1(n.statusCode);this.set_$2k_1(n.statusDescription);this.set_$1g_1(n.body);this.createAsyncResult(this.get_$1g_1(),0,0,null)}else{this.set_$2j_1(500);this.set_$2k_1("Error");var t=n.errorMessage;this.set_$1g_1(t);this.createAsyncResult(null,1,9020,t)}this.$4k_1(n);this.$35_1()},$1j_1:function(){throw Error.create("DOMException",{code:11,message:"INVALID_STATE_ERR"});},$35_1:function(){var n=this;this.$1B_1(2,function(){n.$1B_1(3,function(){n.$1B_1(4,null)})})},$1B_1:function(n,t){this.set_$1f_1(n);var i=this;window.setTimeout(function(){try{i.$2s_1()}finally{$h.ScriptHelpers.isNullOrUndefined(t)||t()}},0)},$2t_1:function(){this.get_$1f_1()!==1&&this.$1j_1();this.$1d_0&&this.$1j_1()}};$h.RequestBase=function(n){this.$1p_0=n};$h.RequestBase.prototype={$1d_0:!1,$P_0:null,$1p_0:null,get_asyncResult:function(){return this.$P_0},$1i_0:function(n,t,i){this.$1d_0=!0;var r=this;OSF.DDA.OutlookAppOm.$2.$C_0(n,t,i,function(n,t){n?r.createAsyncResult(null,1,9017,String.format(_u.ExtensibilityStrings.l_InternalProtocolError_Text,n)):r.handleResponse(t)})},createAsyncResult:function(n,t,i,r){this.$P_0=OSF.DDA.OutlookAppOm.$2.createAsyncResult(n,t,i,this.$1p_0,r)}};$h.SaveDictionaryRequest=function(n,t){$h.SaveDictionaryRequest.initializeBase(this,[t]);$h.ScriptHelpers.isNullOrUndefined(n)||(this.$3_1=n)};$h.SaveDictionaryRequest.prototype={$3_1:null,handleResponse:function(n){n.wasSuccessful?this.createAsyncResult(null,0,0,null):this.createAsyncResult(null,1,9020,n.errorMessage);$h.ScriptHelpers.isNullOrUndefined(this.$3_1)||this.$3_1(this.$P_0)}};$h.ScriptHelpers=function(){};$h.ScriptHelpers.isNull=function(n){return null===n};$h.ScriptHelpers.isNullOrUndefined=function(n){return $h.ScriptHelpers.isNull(n)||$h.ScriptHelpers.isUndefined(n)};$h.ScriptHelpers.isUndefined=function(n){return n===undefined};$h.ScriptHelpers.dictionaryContainsKey=function(n,t){return Object.isInstanceOfType(n)?t in n:!1};$h.ScriptHelpers.isNonEmptyString=function(n){return n?String.isInstanceOfType(n):!1};$h.ScriptHelpers.deepClone=function(n){return JSON.parse(JSON.stringify(n))};OSF.DDA.OutlookAppOm.registerClass("OSF.DDA.OutlookAppOm");OSF.DDA.Settings.registerClass("OSF.DDA.Settings");$h.ItemBase.registerClass("$h.ItemBase");$h.Item.registerClass("$h.Item",$h.ItemBase);$h.Appointment.registerClass("$h.Appointment",$h.Item);$h.ComposeItem.registerClass("$h.ComposeItem",$h.ItemBase);$h.AppointmentCompose.registerClass("$h.AppointmentCompose",$h.ComposeItem);$h.AttachmentConstants.registerClass("$h.AttachmentConstants");$h.AttachmentDetails.registerClass("$h.AttachmentDetails");$h.Body.registerClass("$h.Body");$h.ComposeBody.registerClass("$h.ComposeBody",$h.Body);$h.ComposeRecipient.registerClass("$h.ComposeRecipient");$h.ComposeLocation.registerClass("$h.ComposeLocation");$h.ComposeSubject.registerClass("$h.ComposeSubject");$h.ComposeTime.registerClass("$h.ComposeTime");$h.Contact.registerClass("$h.Contact");$h.CustomProperties.registerClass("$h.CustomProperties");$h.Diagnostics.registerClass("$h.Diagnostics");$h.EmailAddressDetails.registerClass("$h.EmailAddressDetails");$h.Entities.registerClass("$h.Entities");$h.ReplyConstants.registerClass("$h.ReplyConstants");$h.AsyncConstants.registerClass("$h.AsyncConstants");Office.cast.item.registerClass("Office.cast.item");$h.Message.registerClass("$h.Message",$h.Item);$h.MeetingRequest.registerClass("$h.MeetingRequest",$h.Message);$h.MeetingSuggestion.registerClass("$h.MeetingSuggestion");$h.MeetingSuggestionTimeDecoder.registerClass("$h.MeetingSuggestionTimeDecoder");$h.ExtractedDate.registerClass("$h.ExtractedDate");$h.PreciseDate.registerClass("$h.PreciseDate",$h.ExtractedDate);$h.RelativeDate.registerClass("$h.RelativeDate",$h.ExtractedDate);$h.MessageCompose.registerClass("$h.MessageCompose",$h.ComposeItem);$h.NotificationMessages.registerClass("$h.NotificationMessages");$h.OutlookErrorManager.registerClass("$h.OutlookErrorManager");$h.OutlookErrorManager.OutlookErrorCodes.registerClass("$h.OutlookErrorManager.OutlookErrorCodes");$h.OutlookErrorManager.OsfDdaErrorCodes.registerClass("$h.OutlookErrorManager.OsfDdaErrorCodes");$h.PhoneNumber.registerClass("$h.PhoneNumber");$h.TaskSuggestion.registerClass("$h.TaskSuggestion");$h.UserProfile.registerClass("$h.UserProfile");$h.CommonParameters.registerClass("$h.CommonParameters");$h.RequestBase.registerClass("$h.RequestBase");$h.ProxyRequestBase.registerClass("$h.ProxyRequestBase",$h.RequestBase);$h.EwsRequest.registerClass("$h.EwsRequest",$h.ProxyRequestBase);$h.InitialData.registerClass("$h.InitialData");$h.LoadDictionaryRequest.registerClass("$h.LoadDictionaryRequest",$h.RequestBase);$h.SaveDictionaryRequest.registerClass("$h.SaveDictionaryRequest",$h.RequestBase);$h.ScriptHelpers.registerClass("$h.ScriptHelpers");OSF.DDA.OutlookAppOm.asyncMethodTimeoutKeyName="__timeout__";OSF.DDA.OutlookAppOm.$2b=100;OSF.DDA.OutlookAppOm.$2c=255;OSF.DDA.OutlookAppOm.maxBodyLength=32768;OSF.DDA.OutlookAppOm.$2a=255;OSF.DDA.OutlookAppOm.$2Z=1e6;OSF.DDA.OutlookAppOm.$2=null;$h.AttachmentConstants.maxAttachmentNameLength=255;$h.AttachmentConstants.maxUrlLength=2048;$h.AttachmentConstants.maxItemIdLength=200;$h.AttachmentConstants.maxRemoveIdLength=200;$h.AttachmentConstants.attachmentParameterName="attachments";$h.AttachmentConstants.attachmentTypeParameterName="type";$h.AttachmentConstants.attachmentUrlParameterName="url";$h.AttachmentConstants.attachmentItemIdParameterName="itemId";$h.AttachmentConstants.attachmentNameParameterName="name";$h.AttachmentConstants.attachmentTypeFileName="file";$h.AttachmentConstants.attachmentTypeItemName="item";$h.AttachmentDetails.$19=[Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.File,Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.Item,Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.Cloud];$h.Body.coercionTypeParameterName="coercionType";$h.ComposeRecipient.displayNameLengthLimit=255;$h.ComposeRecipient.maxSmtpLength=571;$h.ComposeRecipient.recipientsLimit=100;$h.ComposeRecipient.totalRecipientsLimit=500;$h.ComposeRecipient.addressParameterName="address";$h.ComposeRecipient.nameParameterName="name";$h.ComposeLocation.locationKey="location";$h.ComposeLocation.maximumLocationLength=255;$h.ComposeSubject.maximumSubjectLength=255;$h.ComposeTime.timeTypeName="TimeProperty";$h.ComposeTime.timeDataName="time";$h.Diagnostics.outlookAppName="Outlook";$h.Diagnostics.outlookWebAppName="OutlookWebApp";$h.EmailAddressDetails.$1K="";$h.EmailAddressDetails.$1h=[Microsoft.Office.WebExtension.MailboxEnums.ResponseType.None,Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Organizer,Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Tentative,Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Accepted,Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Declined];$h.EmailAddressDetails.$1e=[Microsoft.Office.WebExtension.MailboxEnums.RecipientType.Other,Microsoft.Office.WebExtension.MailboxEnums.RecipientType.DistributionList,Microsoft.Office.WebExtension.MailboxEnums.RecipientType.User,Microsoft.Office.WebExtension.MailboxEnums.RecipientType.ExternalUser];$h.Entities.$16=["Addresses","EmailAddresses","Urls","PhoneNumbers","TaskSuggestions","MeetingSuggestions","Contacts","FlightReservations","ParcelDeliveries"];$h.ReplyConstants.htmlBodyKeyName="htmlBody";$h.AsyncConstants.optionsKeyName="options";$h.AsyncConstants.callbackKeyName="callback";$h.AsyncConstants.asyncResultKeyName="asyncResult";$h.MeetingSuggestionTimeDecoder.$1v=new Date("0001-01-01T00:00:00Z");$h.NotificationMessages.maximumKeyLength=32;$h.NotificationMessages.maximumIconLength=32;$h.NotificationMessages.maximumMessageLength=150;$h.NotificationMessages.notificationsKeyParameterName="key";$h.NotificationMessages.notificationsTypeParameterName="type";$h.NotificationMessages.notificationsIconParameterName="icon";$h.NotificationMessages.notificationsMessageParameterName="message";$h.NotificationMessages.notificationsPersistentParameterName="persistent";$h.OutlookErrorManager.errorNameKey="name";$h.OutlookErrorManager.errorMessageKey="message";$h.OutlookErrorManager.$1c=!1;$h.OutlookErrorManager.OutlookErrorCodes.attachmentSizeExceeded=9e3;$h.OutlookErrorManager.OutlookErrorCodes.numberOfAttachmentsExceeded=9001;$h.OutlookErrorManager.OutlookErrorCodes.internalFormatError=9002;$h.OutlookErrorManager.OutlookErrorCodes.invalidAttachmentId=9003;$h.OutlookErrorManager.OutlookErrorCodes.invalidAttachmentPath=9004;$h.OutlookErrorManager.OutlookErrorCodes.cannotAddAttachmentBeforeUpgrade=9005;$h.OutlookErrorManager.OutlookErrorCodes.attachmentDeletedBeforeUploadCompletes=9006;$h.OutlookErrorManager.OutlookErrorCodes.attachmentUploadGeneralFailure=9007;$h.OutlookErrorManager.OutlookErrorCodes.attachmentToDeleteDoesNotExist=9008;$h.OutlookErrorManager.OutlookErrorCodes.attachmentDeleteGeneralFailure=9009;$h.OutlookErrorManager.OutlookErrorCodes.invalidEndTime=9010;$h.OutlookErrorManager.OutlookErrorCodes.htmlSanitizationFailure=9011;$h.OutlookErrorManager.OutlookErrorCodes.numberOfRecipientsExceeded=9012;$h.OutlookErrorManager.OutlookErrorCodes.noValidRecipientsProvided=9013;$h.OutlookErrorManager.OutlookErrorCodes.cursorPositionChanged=9014;$h.OutlookErrorManager.OutlookErrorCodes.invalidSelection=9016;$h.OutlookErrorManager.OutlookErrorCodes.accessRestricted=9017;$h.OutlookErrorManager.OutlookErrorCodes.genericTokenError=9018;$h.OutlookErrorManager.OutlookErrorCodes.genericSettingsError=9019;$h.OutlookErrorManager.OutlookErrorCodes.genericResponseError=9020;$h.OutlookErrorManager.OutlookErrorCodes.saveError=9021;$h.OutlookErrorManager.OutlookErrorCodes.messageInDifferentStoreError=9022;$h.OutlookErrorManager.OutlookErrorCodes.duplicateNotificationKey=9023;$h.OutlookErrorManager.OutlookErrorCodes.notificationKeyNotFound=9024;$h.OutlookErrorManager.OutlookErrorCodes.numberOfNotificationsExceeded=9025;$h.OutlookErrorManager.OutlookErrorCodes.ooeInvalidDataFormat=2006;$h.OutlookErrorManager.OsfDdaErrorCodes.ooeCoercionTypeNotSupported=1e3;$h.CommonParameters.asyncContextKeyName="asyncContext";$h.ScriptHelpers.emptyString="";OSF.DDA.ErrorCodeManager.initializeErrorMessages(Strings.OfficeOM);this._settings=n.get_appName()==OSF.AppName.OutlookWebApp||n.get_appName()==OSF.AppName.OutlookIOS?this._initializeSettings(n,!1):this._initializeSettings(!1);n.appOM=new OSF.DDA.OutlookAppOm(n,this._webAppState.wnd,t)}